Fix stm32 compile error regarding inputBroker

This commit is contained in:
Jonathan Bennett 2025-06-13 01:57:07 -05:00
parent c67a0103ab
commit 0fe462e74a

View File

@ -1323,13 +1323,14 @@ void AdminModule::handleSendInputEvent(const meshtastic_AdminMessage_InputEvent
// Wake the device if asleep // Wake the device if asleep
powerFSM.trigger(EVENT_INPUT); powerFSM.trigger(EVENT_INPUT);
#if !defined(MESHTASTIC_EXCLUDE_INPUTBROKER)
// Inject the event through InputBroker // Inject the event through InputBroker
if (inputBroker) { if (inputBroker) {
inputBroker->injectInputEvent(&event); inputBroker->injectInputEvent(&event);
} else { } else {
LOG_ERROR("InputBroker not available for event injection"); LOG_ERROR("InputBroker not available for event injection");
} }
#endif
} }
void AdminModule::sendWarning(const char *message) void AdminModule::sendWarning(const char *message)