[ersky9x] Radio blocked on start when playing a sound before SD card initialization end.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user