mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 01:52:48 +00:00
Ignore keyboard input while sending CannedMessages packet
This commit is contained in:
parent
45f90fb39b
commit
71c0726838
@ -142,7 +142,9 @@ int CannedMessageModule::handleInputEvent(const InputEvent *event)
|
|||||||
// source at all)
|
// source at all)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (this->runState == CANNED_MESSAGE_RUN_STATE_SENDING_ACTIVE) {
|
||||||
|
return 0; // Ignore input while sending
|
||||||
|
}
|
||||||
bool validEvent = false;
|
bool validEvent = false;
|
||||||
if (event->inputEvent == static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_UP)) {
|
if (event->inputEvent == static_cast<char>(meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_UP)) {
|
||||||
if (this->messagesCount > 0) {
|
if (this->messagesCount > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user