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

@@ -40,11 +40,10 @@ bool AudioPlaySdRaw::play(const char *filename)
{
stop();
AudioStartUsingSPI();
__disable_irq();
rawfile = SD.open(filename);
__enable_irq();
if (!rawfile) {
//Serial.println("unable to open file");
AudioStopUsingSPI();
return false;
}
file_size = rawfile.size();

Loading…
Cancel
Save