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
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

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;