Procházet zdrojové kódy

Do not disable all interrupts while opening RAW files

dds
PaulStoffregen před 10 roky
rodič
revize
4c6e76e2b4
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. +1
    -2
      play_sd_raw.cpp

+ 1
- 2
play_sd_raw.cpp Zobrazit soubor

{ {
stop(); stop();
AudioStartUsingSPI(); AudioStartUsingSPI();
__disable_irq();
rawfile = SD.open(filename); rawfile = SD.open(filename);
__enable_irq();
if (!rawfile) { if (!rawfile) {
//Serial.println("unable to open file"); //Serial.println("unable to open file");
AudioStopUsingSPI();
return false; return false;
} }
file_size = rawfile.size(); file_size = rawfile.size();

Načítá se…
Zrušit
Uložit