Skip unknown model warning

This commit is contained in:
WillyJL 2025-09-24 02:04:58 +02:00
parent eaee05437e
commit f4bdf2f248
No known key found for this signature in database

View File

@ -48,8 +48,8 @@ void KbI2cBase::pollOnce()
{ {
// Called right after an interrupt by InputBroker // Called right after an interrupt by InputBroker
switch (kb_model) { switch (kb_model) {
#ifdef KB_INT
case 0x84: { // Adafruit TCA8418 case 0x84: { // Adafruit TCA8418
#ifdef KB_INT
TCAKeyboard.trigger(); TCAKeyboard.trigger();
InputEvent e = {}; InputEvent e = {};
while (TCAKeyboard.hasEvent()) { while (TCAKeyboard.hasEvent()) {
@ -133,9 +133,9 @@ void KbI2cBase::pollOnce()
inputBroker->queueInputEvent(&e); inputBroker->queueInputEvent(&e);
} }
} }
#endif
break; break;
} }
#endif
default: default:
LOG_WARN("Unknown kb_model 0x%02x", kb_model); LOG_WARN("Unknown kb_model 0x%02x", kb_model);
} }
@ -356,8 +356,8 @@ int32_t KbI2cBase::runOnce()
} }
break; break;
} }
#ifndef KB_INT
case 0x84: { // Adafruit TCA8418 case 0x84: { // Adafruit TCA8418
#ifndef KB_INT
TCAKeyboard.trigger(); TCAKeyboard.trigger();
InputEvent e = {}; InputEvent e = {};
while (TCAKeyboard.hasEvent()) { while (TCAKeyboard.hasEvent()) {
@ -442,9 +442,9 @@ int32_t KbI2cBase::runOnce()
} }
} }
TCAKeyboard.clearInt(); TCAKeyboard.clearInt();
#endif
break; break;
} }
#endif
case 0x02: { case 0x02: {
// RAK14004 // RAK14004
uint8_t rDataBuf[8] = {0}; uint8_t rDataBuf[8] = {0};