Skip to content

Commit

Permalink
reformat file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnu-Bricoleur committed Jun 13, 2024
1 parent 918bf35 commit 456ce03
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/input/SerialKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -171,19 +170,6 @@ int32_t SerialKeyboard::runOnce()
keyPressed = 13;
}














if (e.inputEvent != meshtastic_ModuleConfig_CannedMessageConfig_InputEventChar_NONE) {
this->notifyObservers(&e);
}
Expand Down

0 comments on commit 456ce03

Please sign in to comment.