Change screens if both left and right are pressed

This commit is contained in:
2023-04-11 21:53:36 +02:00
parent 78c3c38988
commit fe58a68b96
12 changed files with 59 additions and 36 deletions

View File

@ -10,7 +10,7 @@ bool STWButtonController::sample(uint8_t &key) {
ButtonMessage msg;
if (tx_queue_receive(&gui_button_queue, &msg, TX_NO_WAIT) == TX_SUCCESS) {
switch (msg.kind) {
case UMK_BTN_RELEASED:
case UMK_BTN_PRESSED:
key = KEY_BTN1 + msg.number;
break;
case UMK_ENC_CW: {