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