mirror of
https://github.com/esphome/esphome.git
synced 2025-04-13 14:20:29 +01:00
[i2s_audio] Bugfix: Speaker incorrectly delays when sending data (#8361)
This commit is contained in:
parent
1d6d0d66dc
commit
83cba0d7bd
@ -203,7 +203,7 @@ size_t I2SAudioSpeaker::play(const uint8_t *data, size_t length, TickType_t tick
|
||||
this->start();
|
||||
}
|
||||
|
||||
if ((this->state_ != speaker::STATE_RUNNING) || (this->audio_ring_buffer_.use_count() == 1)) {
|
||||
if ((this->state_ != speaker::STATE_RUNNING) || (this->audio_ring_buffer_.use_count() != 1)) {
|
||||
// Unable to write data to a running speaker, so delay the max amount of time so it can get ready
|
||||
vTaskDelay(ticks_to_wait);
|
||||
ticks_to_wait = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user