mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Added Handling for Nack "file not found" (#5338)
This commit is contained in:
parent
4ae582c305
commit
3d9af2a67c
1 changed files with 5 additions and 0 deletions
|
@ -101,6 +101,11 @@ void DFPlayer::loop() {
|
||||||
ESP_LOGV(TAG, "Nack");
|
ESP_LOGV(TAG, "Nack");
|
||||||
this->ack_set_is_playing_ = false;
|
this->ack_set_is_playing_ = false;
|
||||||
this->ack_reset_is_playing_ = false;
|
this->ack_reset_is_playing_ = false;
|
||||||
|
if (argument == 6) {
|
||||||
|
ESP_LOGV(TAG, "File not found");
|
||||||
|
this->is_playing_ = false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 0x41:
|
case 0x41:
|
||||||
ESP_LOGV(TAG, "Ack ok");
|
ESP_LOGV(TAG, "Ack ok");
|
||||||
this->is_playing_ |= this->ack_set_is_playing_;
|
this->is_playing_ |= this->ack_set_is_playing_;
|
||||||
|
|
Loading…
Reference in a new issue