From f6cec668c7ad623043b0c7796fb599602b41eb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Adam=C4=8D=C3=ADk?= Date: Mon, 18 May 2020 12:56:08 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Drashna Jaelre --- keyboards/sofle/keymaps/default/config.h | 1 - keyboards/sofle/keymaps/default/keymap.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/keyboards/sofle/keymaps/default/config.h b/keyboards/sofle/keymaps/default/config.h index 8133e12fcfd..0b1e2a11c6e 100644 --- a/keyboards/sofle/keymaps/default/config.h +++ b/keyboards/sofle/keymaps/default/config.h @@ -4,6 +4,5 @@ see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness for more options. */ -#define MASTER_LEFT #define TAPPING_FORCE_HOLD diff --git a/keyboards/sofle/keymaps/default/keymap.c b/keyboards/sofle/keymaps/default/keymap.c index 5c52de71326..aa8fd15f80b 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) {