aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/sofle/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorGravatar Josef Adamčík <josef.adamcik@gmail.com>2020-05-18 12:56:08 +0200
committerGravatar GitHub <noreply@github.com>2020-05-18 12:56:08 +0200
commitf6cec668c7ad623043b0c7796fb599602b41eb75 (patch)
tree821b1809f14c007edb12cd72f004c3582b64e792 /keyboards/sofle/keymaps/default/keymap.c
parent2651edc24347c52093f15a83603515c3d215dca1 (diff)
downloadqmk_firmware-f6cec668c7ad623043b0c7796fb599602b41eb75.tar.gz
Apply suggestions from code review
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/sofle/keymaps/default/keymap.c')
-rw-r--r--keyboards/sofle/keymaps/default/keymap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/sofle/keymaps/default/keymap.c b/keyboards/sofle/keymaps/default/keymap.c
index 5c52de713..aa8fd15f8 100644
--- a/keyboards/sofle/keymaps/default/keymap.c
+++ b/keyboards/sofle/keymaps/default/keymap.c
@@ -166,7 +166,7 @@ static void print_status_narrow(void) {
oled_write_ln_P(PSTR("Clmk"), false);
break;
default:
- oled_write_P(PSTR("Undefined\n"), false);
+ oled_write_P(PSTR("Undef"), false);
}
oled_write_P(PSTR("\n\n"), false);
// Print current layer
@@ -189,8 +189,8 @@ static void print_status_narrow(void) {
oled_write_ln_P(PSTR("Undef"), false);
}
oled_write_P(PSTR("\n\n"), false);
- uint8_t led_usb_state = host_keyboard_leds();
- oled_write_ln_P(led_usb_state & (1 << USB_LED_CAPS_LOCK) ? PSTR("CPSLK") : PSTR(" "), false);
+ led_t led_usb_state = host_keyboard_led_state()();
+ oled_write_ln_P(PSTR("CPSLK"), led_usb_state.caps_lock);
}
oled_rotation_t oled_init_user(oled_rotation_t rotation) {