mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 19:18:09 +01:00
Extend timeout to 500ms
This commit is contained in:
parent
e2bb81e233
commit
f500bd5e6f
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,8 @@ void ESPADFSpeaker::player_task(void *params) {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (xQueueReceive(this_speaker->buffer_queue_, &data_event, 0) != pdTRUE) {
|
if (xQueueReceive(this_speaker->buffer_queue_, &data_event, 0) != pdTRUE) {
|
||||||
if (millis() - last_received > 100) {
|
if (millis() - last_received > 500) {
|
||||||
// No audio for 100ms, stop
|
// No audio for 500ms, stop
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue