Warnings and log cleanup (#5472)

* Don't log if keyboard not found

* Signed comparison issue
This commit is contained in:
Ben Meadors
2024-11-28 11:20:06 -06:00
committed by GitHub
parent 5ad30a55ea
commit b5777beb7d
2 changed files with 5 additions and 4 deletions

View File

@@ -49,10 +49,11 @@ void CardKbI2cImpl::init()
kb_model = 0x00;
}
}
LOG_DEBUG("Keyboard Type: 0x%02x Model: 0x%02x Address: 0x%02x", kb_info.type, kb_model, cardkb_found.address);
if (cardkb_found.address == 0x00) {
disable();
return;
} else {
LOG_DEBUG("Keyboard Type: 0x%02x Model: 0x%02x Address: 0x%02x", kb_info.type, kb_model, cardkb_found.address);
}
}
#else