mirror of
https://github.com/esphome/esphome.git
synced 2025-01-18 20:10:55 +00:00
Extend timeout to 500ms
This commit is contained in:
parent
e2bb81e233
commit
f500bd5e6f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user