[ersky9x] Radio blocked on start when playing a sound before SD card initialization end.

This commit is contained in:
bsongis
2012-07-27 17:52:03 +00:00
parent d2fabe2b2e
commit 174a7b29d9
5 changed files with 39 additions and 20 deletions
+3
View File
@@ -462,6 +462,9 @@ void AudioQueue::playFile(const char *filename, uint8_t flags)
printf("playFile(\"%s\")\n", filename); fflush(stdout);
#endif
if (!sd_card_mounted())
return;
CoEnterMutexSection(audioMutex);
uint8_t next_widx = (widx + 1) % AUDIO_QUEUE_LENGTH;