1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

Print error in dump config if pn532 is marked failed.

This commit is contained in:
Jesse Hills
2022-05-25 13:03:53 +12:00
parent cd35ead890
commit 9268ef7665

View File

@@ -345,6 +345,8 @@ float PN532::get_setup_priority() const { return setup_priority::DATA; }
void PN532::dump_config() {
ESP_LOGCONFIG(TAG, "PN532:");
if (this->is_failed())
ESP_LOGE(TAG, "Component marked as failed. Check setup logs.");
switch (this->error_code_) {
case NONE:
break;