mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 14:34:54 +01:00
clang-tidy fix
This commit is contained in:
parent
f7f2a84fbf
commit
8a6427ef7e
1 changed files with 2 additions and 1 deletions
|
@ -283,11 +283,12 @@ void NabuMediaPlayer::watch_media_commands_() {
|
|||
void NabuMediaPlayer::watch_mixer_() {
|
||||
TaskEvent event;
|
||||
if (this->audio_mixer_ != nullptr) {
|
||||
while (this->audio_mixer_->read_event(&event))
|
||||
while (this->audio_mixer_->read_event(&event)) {
|
||||
if (event.type == EventType::WARNING) {
|
||||
ESP_LOGD(TAG, "Mixer encountered an error: %s", esp_err_to_name(event.err));
|
||||
this->status_set_error();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue