1
0
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:
Peter Zich
2025-01-08 22:47:30 -08:00
committed by GitHub
parent 78543e1e15
commit a498fb5dcf
17 changed files with 55 additions and 35 deletions

View File

@@ -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;
}
}
}
}