From 5ab2312201907b935af8b9811830808ed5969674 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 17 Oct 2022 20:32:18 +0200 Subject: [PATCH] Some more comments --- firmware/src/main.cpp | 7 +++++++ .../cmdr_mainboard-2022-10-04_010141.zip | 3 --- .../cmdr_mainboard-2022-10-17_201636.zip | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-04_010141.zip create mode 100644 schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-17_201636.zip diff --git a/firmware/src/main.cpp b/firmware/src/main.cpp index 58e46d2..e0f6273 100755 --- a/firmware/src/main.cpp +++ b/firmware/src/main.cpp @@ -527,6 +527,7 @@ void scan_buttons() { if (buttons[i].gm_keycode == KEY_COMBO) { + /* Sending press command for all combo keys */ for (int j = 0; j < 3; j++) { set_key(buttons[i].combo_keycode[j], PRESSED); @@ -541,6 +542,7 @@ void scan_buttons() { if (buttons[i].fn1_keycode == KEY_COMBO) { + /* Sending press command for all combo keys */ for (int j = 0; j < 3; j++) { set_key(buttons[i].combo_keycode[j], PRESSED); @@ -555,6 +557,7 @@ void scan_buttons() { if (buttons[i].fn2_keycode == KEY_COMBO) { + /* Sending press command for all combo keys */ for (int j = 0; j < 3; j++) { set_key(buttons[i].combo_keycode[j], PRESSED); @@ -569,6 +572,7 @@ void scan_buttons() { if (buttons[i].keycode == KEY_COMBO) { + /* Sending press command for all combo keys */ for (int j = 0; j < 3; j++) { set_key(buttons[i].combo_keycode[j], PRESSED); @@ -612,6 +616,7 @@ void scan_buttons() { if (buttons[i].gm_keycode == KEY_COMBO) { + /* Sending release command for all combo keys */ for (int j = 0; j < 3; j++) { set_key(buttons[i].combo_keycode[j], RELEASED); @@ -624,11 +629,13 @@ void scan_buttons() } else { + /* Sending release command for all combo keys */ for (int j = 0; j < 3; j++) { set_key(buttons[i].combo_keycode[j], RELEASED); } + /* Sending release command for all other keycodes related to this button */ set_key(buttons[i].fn2_keycode, RELEASED); set_key(buttons[i].fn1_keycode, RELEASED); set_key(buttons[i].keycode, RELEASED); diff --git a/schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-04_010141.zip b/schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-04_010141.zip deleted file mode 100644 index 0d15e1d..0000000 --- a/schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-04_010141.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1ca687b7b2ffa9f770a93ad1ba638ff7637378b2ada5036e26707c0d0d504c34 -size 172734 diff --git a/schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-17_201636.zip b/schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-17_201636.zip new file mode 100644 index 0000000..8841fc4 --- /dev/null +++ b/schematics/cmdr-keyboard-mainboard-42/cmdr_mainboard-backups/cmdr_mainboard-2022-10-17_201636.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:541bbc39191bb4ff2a8a3d5f4d4957b841bc43a5f914dc44e62cdb7aff3e9ac6 +size 528498