1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-19 03:32:20 +01:00

More voice assistant fixes (#5547)

This commit is contained in:
Jesse Hills
2023-10-17 20:11:37 +13:00
committed by GitHub
parent fb90e19713
commit a960c8008e
2 changed files with 3 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ void I2SAudioMicrophone::setup() {
void I2SAudioMicrophone::start() {
if (this->is_failed())
return;
if (this->state_ == microphone::STATE_RUNNING)
return; // Already running
this->state_ = microphone::STATE_STARTING;
}
void I2SAudioMicrophone::start_() {