fix: arduino media player still sets wrong state. (#6875)

This commit is contained in:
Mischa Siekmann 2024-06-09 08:34:21 +02:00 committed by GitHub
parent 38b7bed2fa
commit 618102fe8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ void I2SAudioMediaPlayer::control(const media_player::MediaPlayerCall &call) {
}
}
if (this->state == media_player::MEDIA_PLAYER_STATE_ANNOUNCING) {
if (play_state == media_player::MEDIA_PLAYER_STATE_ANNOUNCING) {
this->is_announcement_ = true;
}