mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Added Handling for Nack "file not found" (#5338)
This commit is contained in:
		| @@ -101,6 +101,11 @@ void DFPlayer::loop() { | ||||
|             ESP_LOGV(TAG, "Nack"); | ||||
|             this->ack_set_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: | ||||
|             ESP_LOGV(TAG, "Ack ok"); | ||||
|             this->is_playing_ |= this->ack_set_is_playing_; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user