From 82218aabce2315a871cbc451485dd8a09b26265c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Izzo?= Date: Mon, 21 Aug 2023 18:30:57 +0200 Subject: [PATCH] ttwrplus: enable macro menu Modified keyboard mapping to enable macro menu, interface is still broken as the T-TWR Plus is missing a keyboard. Now the volume down key, mapped as the MONI button can be also used to set the squelch level. TG-553 --- platform/drivers/keyboard/keyboard_ttwrplus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/drivers/keyboard/keyboard_ttwrplus.c b/platform/drivers/keyboard/keyboard_ttwrplus.c index 2a9c181c..760688e3 100644 --- a/platform/drivers/keyboard/keyboard_ttwrplus.c +++ b/platform/drivers/keyboard/keyboard_ttwrplus.c @@ -37,7 +37,7 @@ static void gpio_keys_cb_handler(struct input_event *evt) switch(evt->code) { case INPUT_KEY_VOLUMEDOWN: - keyCode = KEY_DOWN; + keyCode = KEY_MONI; break; case INPUT_BTN_START: