mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 01:34:18 +01:00
make sure that only the component locking is in place.
This commit is contained in:
parent
c245c554e2
commit
8567c6f523
1 changed files with 0 additions and 3 deletions
|
@ -201,9 +201,6 @@ size_t I2SAudioSpeaker::play(const uint8_t *data, size_t length, TickType_t tick
|
|||
ESP_LOGE(TAG, "Cannot play new audio, it being used by an other audio component.");
|
||||
return 0;
|
||||
}
|
||||
if (this->state_ == speaker::STATE_STOPPING) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (this->state_ != speaker::STATE_RUNNING && this->state_ != speaker::STATE_STARTING) {
|
||||
this->start();
|
||||
|
|
Loading…
Reference in a new issue