From 456ce03c05a787753205afd8a9003f11beaceb8c Mon Sep 17 00:00:00 2001 From: "s.migaud" Date: Thu, 13 Jun 2024 14:57:57 +0200 Subject: [PATCH] reformat file --- src/input/SerialKeyboard.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/input/SerialKeyboard.cpp b/src/input/SerialKeyboard.cpp index 9cbb090392..7870263f4f 100644 --- a/src/input/SerialKeyboard.cpp +++ b/src/input/SerialKeyboard.cpp @@ -21,6 +21,7 @@ unsigned char KeyMap[3][4][10]= {{{'.','a','d','g','j','m','p','t','w',' '}, #endif + SerialKeyboard::SerialKeyboard(const char *name) : concurrency::OSThread(name) { this->_originName = name; @@ -55,8 +56,6 @@ int32_t SerialKeyboard::runOnce() LOG_DEBUG("Serial Keyboard setup\n"); } - - if (INPUTBROKER_SERIAL_TYPE == 1) { //Chatter V1.0 & V2.0 keypads // scan for keypresses // Write pulse to load pin @@ -135,7 +134,7 @@ int32_t SerialKeyboard::runOnce() if (shift == 0 || shift ==2){ // BACKSPACE e.inputEvent = meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_BACK; e.kbchar = 0x08; - } else { // shift = 1 or 3 => TAB + } else { // shift = 1 => TAB e.inputEvent = ANYKEY; e.kbchar = 0x09; } @@ -171,19 +170,6 @@ int32_t SerialKeyboard::runOnce() keyPressed = 13; } - - - - - - - - - - - - - if (e.inputEvent != meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_NONE) { this->notifyObservers(&e); }