mirror of
https://github.com/esphome/esphome.git
synced 2024-11-09 16:57:47 +01:00
Print error in dump config if pn532 is marked failed.
This commit is contained in:
parent
cd35ead890
commit
9268ef7665
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue