Browse Source

Do not disable all interrupts while opening RAW files

dds
PaulStoffregen 9 years ago
parent
commit
4c6e76e2b4
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      play_sd_raw.cpp

+ 1
- 2
play_sd_raw.cpp View File

{ {
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();

Loading…
Cancel
Save