summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-07-25 13:57:28 -0500
committerDrashna Jaelre <drashna@live.com>2019-07-25 11:57:28 -0700
commitf3acaff65bf3590d6151013af5c36e059e1a633a (patch)
tree0724e801ee798ea52b3fa99e3768000621a244b4 /keyboards
parent20c0533c4c66b9d222b6ced2fad3ec6be6cad76e (diff)
[Keymap] Fix default layer display (#6398)
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/rgbkb/sol/keymaps/default/keymap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/rgbkb/sol/keymaps/default/keymap.c b/keyboards/rgbkb/sol/keymaps/default/keymap.c
index f948dc450f..1fae6cc971 100644
--- a/keyboards/rgbkb/sol/keymaps/default/keymap.c
+++ b/keyboards/rgbkb/sol/keymaps/default/keymap.c
@@ -324,7 +324,8 @@ static void render_status(void) {
// Define layers here
oled_write_P(PSTR("Layer"), false);
- switch (biton32(layer_state)) {
+ uint8_t layer = layer_state ? biton(layer_state) : biton32(default_layer_state);
+ switch (layer) {
case _QWERTY:
oled_write_P(PSTR("BASE "), false);
break;