commit 52ec29537eb10b6669a91d565e20ffb5fea15186
parent 9ca5fef72b0adccab2ffda3c3a08364744b554d0
Author: Chartreuse <kit@ckits.ca>
Date: Sun, 15 Aug 2021 21:46:44 -0600
Enabled keyboard power-off when system turned off
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/reform2-keyboard-fw/Keyboard.c b/reform2-keyboard-fw/Keyboard.c
@@ -552,6 +552,7 @@ int execute_meta_function(int keycode) {
if (keycode == KEY_0) {
// TODO: are you sure?
remote_turn_off_som();
+ EnterPowerOff();
}
else if (keycode == KEY_1) {
remote_turn_on_som();
@@ -610,8 +611,6 @@ int execute_meta_function(int keycode) {
}
else if (keycode == KEY_P) {
EnterPowerOff();
- gfx_clear();
- gfx_flush();
}
gfx_clear();