clang-tidy fix

This commit is contained in:
Kevin Ahrendt 2024-10-24 20:33:21 +00:00
parent f7f2a84fbf
commit 8a6427ef7e

View file

@ -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() {