commit 128bdd13b32244430208590b07d89b1280d0ce4b
parent 7bc3decafe073572a4f9d4733324e0d644a337c6
Author: Lukas F. Hartmann <lukas@mntre.com>
Date: Mon, 27 Sep 2021 22:24:12 +0200
kbd: hide kbd power-off menu item
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/reform2-keyboard-fw/Keyboard.c b/reform2-keyboard-fw/Keyboard.c
@@ -409,6 +409,7 @@ void remote_check_for_low_battery(void) {
// The keyboard will then go to sleep accordingly.
EnterPowerOff();
+ reset_keyboard_state();
}
remote_som_power_expected_state = is_computer_on;
}
@@ -546,7 +547,7 @@ const MenuItem menu_items[] = {
{ "System Status s", KEY_S }
};
#else
-#define MENU_NUM_ITEMS 10
+#define MENU_NUM_ITEMS 9
const MenuItem menu_items[] = {
{ "Exit Menu ESC", KEY_ESCAPE },
{ "Power On 1", KEY_1 },