Extend timeout to 500ms

This commit is contained in:
Jesse Hills 2023-11-24 20:29:49 +13:00
parent e2bb81e233
commit f500bd5e6f
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -132,8 +132,8 @@ void ESPADFSpeaker::player_task(void *params) {
while (true) {
if (xQueueReceive(this_speaker->buffer_queue_, &data_event, 0) != pdTRUE) {
if (millis() - last_received > 100) {
// No audio for 100ms, stop
if (millis() - last_received > 500) {
// No audio for 500ms, stop
break;
} else {
continue;