diff --git a/esphome/components/pn532/pn532.cpp b/esphome/components/pn532/pn532.cpp index 7ebf328cff..dc831ef6e0 100644 --- a/esphome/components/pn532/pn532.cpp +++ b/esphome/components/pn532/pn532.cpp @@ -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 version_data;