mirror of
https://github.com/esphome/esphome.git
synced 2025-09-13 08:42:18 +01:00
Fix braceless else statements (#7799)
This commit is contained in:
@@ -25,11 +25,13 @@ void I2SAudioMicrophone::setup() {
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
if (this->pdm_) {
|
||||
if (this->parent_->get_port() != I2S_NUM_0) {
|
||||
ESP_LOGE(TAG, "PDM only works on I2S0!");
|
||||
this->mark_failed();
|
||||
return;
|
||||
{
|
||||
if (this->pdm_) {
|
||||
if (this->parent_->get_port() != I2S_NUM_0) {
|
||||
ESP_LOGE(TAG, "PDM only works on I2S0!");
|
||||
this->mark_failed();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user