mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 02:00:55 +00:00
Print error in dump config if pn532 is marked failed.
This commit is contained in:
parent
cd35ead890
commit
9268ef7665
@ -345,6 +345,8 @@ float PN532::get_setup_priority() const { return setup_priority::DATA; }
|
|||||||
|
|
||||||
void PN532::dump_config() {
|
void PN532::dump_config() {
|
||||||
ESP_LOGCONFIG(TAG, "PN532:");
|
ESP_LOGCONFIG(TAG, "PN532:");
|
||||||
|
if (this->is_failed())
|
||||||
|
ESP_LOGE(TAG, "Component marked as failed. Check setup logs.");
|
||||||
switch (this->error_code_) {
|
switch (this->error_code_) {
|
||||||
case NONE:
|
case NONE:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user