summaryrefslogtreecommitdiff
path: root/keyboards/handwired/jopr/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/jopr/keymaps/default/keymap.c')
-rw-r--r--keyboards/handwired/jopr/keymaps/default/keymap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/keyboards/handwired/jopr/keymaps/default/keymap.c b/keyboards/handwired/jopr/keymaps/default/keymap.c
index 1dc0f3a59e..fc615b0109 100644
--- a/keyboards/handwired/jopr/keymaps/default/keymap.c
+++ b/keyboards/handwired/jopr/keymaps/default/keymap.c
@@ -22,23 +22,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};
-void led_set_user(uint8_t usb_led) {
+bool led_update_user(led_t led_state) {
- if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ if (led_state.caps_lock) {
writePinHigh(F1);
} else {
writePinLow(F1);
}
- if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
+ if (led_state.scroll_lock) {
writePinHigh(F0);
} else {
writePinLow(F0);
}
- if (!(IS_LED_ON(usb_led, USB_LED_NUM_LOCK))) {
+ if (!led_state.num_lock) {
tap_code(KC_NUM_LOCK);
}
+ return false;
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static bool sysreq_led = false;