ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

Misuse of Mutex

Open MeAndy56 opened this issue 1 year ago • 1 comments

Hallo, I used your simple WIFI Radio. It worked fine, then I expanded my Code to read *.mp3 from SD. Worked fine. But if I heared WIFI musik then SD musik and switched back to WIFI musik the audio loop was hanging in the Mutex. I looked for your code and found a misuse of the mutex. You mixed different Calls with the same ground Mutex, was isn't allowed the xSemaphoreCreateRecursiveMutex() needs a different ground mutex as the simple one. I changed all to xSemaphoreCreateRecursiveMutex() now it workes fine. But I have not made extensive tests. Have a look to the mutex use if you have time. Best Regards Andreas

MeAndy56 avatar Jun 04 '24 08:06 MeAndy56