reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

commit 2b73926763f05a8ce6edb705b3948a8d7720e222
parent e543ed0da11731bb5396d754e876324857622d38
Author: mntmn <lukas@mntmn.com>
Date:   Thu, 28 Nov 2019 22:50:40 +0100

WIP fix meta-0/1 handling

Diffstat:
Mreform-keyboard2-fw/Keyboard.c | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/reform-keyboard2-fw/Keyboard.c b/reform-keyboard2-fw/Keyboard.c @@ -152,12 +152,15 @@ void process_keyboard(char usb_report_mode, USB_KeyboardReport_Data_t* KeyboardR keyPressedNow = keycode; } } - if (keycode == KEY_0) { - remote_turn_off_som(); - } - else if (keycode == KEY_1) { - remote_turn_on_som(); - } + + if (metaPressed) { + if (keycode == KEY_0) { + remote_turn_off_som(); + } + else if (keycode == KEY_1) { + remote_turn_on_som(); + } + } } }