summaryrefslogtreecommitdiff
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-15 14:33:24 +1100
committerGitHub <noreply@github.com>2022-10-15 14:33:24 +1100
commitf0b2bfd5ca5b416a9c7c9bef8c2850f1084bd106 (patch)
tree2e3cc54b3fb899f05f15bf8008bcbb4816b5ffb5 /quantum/process_keycode
parent19aed5e999ef177a2ff0b2b705443bde9c70588c (diff)
Programmable Button API refactor and improve docs (#18641)
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_programmable_button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_programmable_button.c b/quantum/process_keycode/process_programmable_button.c
index c6e77faacc..6379698848 100644
--- a/quantum/process_keycode/process_programmable_button.c
+++ b/quantum/process_keycode/process_programmable_button.c
@@ -22,9 +22,9 @@ bool process_programmable_button(uint16_t keycode, keyrecord_t *record) {
if (keycode >= PROGRAMMABLE_BUTTON_MIN && keycode <= PROGRAMMABLE_BUTTON_MAX) {
uint8_t button = keycode - PROGRAMMABLE_BUTTON_MIN + 1;
if (record->event.pressed) {
- programmable_button_on(button);
+ programmable_button_register(button);
} else {
- programmable_button_off(button);
+ programmable_button_unregister(button);
}
}
return true;