Skip to content

Commit ea28787

Browse files
authored
Task waits indefinitely for recursions #3
1 parent 0ef0ca3 commit ea28787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ bool Audio::connecttoSD(const char* path, uint32_t resumeFilePos) {
680680
//---------------------------------------------------------------------------------------------------------------------
681681
bool Audio::connecttoFS(fs::FS &fs, const char* path, uint32_t resumeFilePos) {
682682

683-
xSemaphoreTake(mutex_audio, portMAX_DELAY);
683+
xSemaphoreTakeRecursive(mutex_audio, portMAX_DELAY); // #3
684684

685685
if(strlen(path)>255){
686686
xSemaphoreGive(mutex_audio);

0 commit comments

Comments
 (0)