mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Version retry (fixes esphome/issues#3823) (#4651)
This commit is contained in:
		| @@ -19,9 +19,12 @@ void PN532::setup() { | ||||
|  | ||||
|   // Get version data | ||||
|   if (!this->write_command_({PN532_COMMAND_VERSION_DATA})) { | ||||
|     ESP_LOGE(TAG, "Error sending version command"); | ||||
|     this->mark_failed(); | ||||
|     return; | ||||
|     ESP_LOGW(TAG, "Error sending version command, trying again..."); | ||||
|     if (!this->write_command_({PN532_COMMAND_VERSION_DATA})) { | ||||
|       ESP_LOGE(TAG, "Error sending version command"); | ||||
|       this->mark_failed(); | ||||
|       return; | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   std::vector<uint8_t> version_data; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user