Unverified Commit ea287871 authored by Wolle's avatar Wolle Committed by GitHub

Task waits indefinitely for recursions #3

parent 0ef0ca35
...@@ -680,7 +680,7 @@ bool Audio::connecttoSD(const char* path, uint32_t resumeFilePos) { ...@@ -680,7 +680,7 @@ bool Audio::connecttoSD(const char* path, uint32_t resumeFilePos) {
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
bool Audio::connecttoFS(fs::FS &fs, const char* path, uint32_t resumeFilePos) { bool Audio::connecttoFS(fs::FS &fs, const char* path, uint32_t resumeFilePos) {
xSemaphoreTake(mutex_audio, portMAX_DELAY); xSemaphoreTakeRecursive(mutex_audio, portMAX_DELAY); // #3
if(strlen(path)>255){ if(strlen(path)>255){
xSemaphoreGive(mutex_audio); xSemaphoreGive(mutex_audio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment