Skip to content

Commit

Permalink
[Keyboard] Fix splitkb/corne OLED code (qmk#24260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diaoul authored and sqrtnull committed Oct 22, 2024
1 parent 38d1b88 commit 7fc0f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keyboards/splitkb/aurora/corne/corne.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static void render_mod_status_gui_alt(uint8_t modifiers) {
oled_write_P(gui_off_2, false);
}

if (modifiers & MOD_MASK_GUI & MOD_MASK_ALT) {
if ((modifiers & MOD_MASK_GUI) && (modifiers & MOD_MASK_ALT)) {
oled_write_P(on_on_2, false);
} else if(modifiers & MOD_MASK_GUI) {
oled_write_P(on_off_2, false);
Expand Down Expand Up @@ -151,7 +151,7 @@ static void render_mod_status_ctrl_shift(uint8_t modifiers) {
oled_write_P(ctrl_off_2, false);
}

if (modifiers & MOD_MASK_CTRL & MOD_MASK_SHIFT) {
if ((modifiers & MOD_MASK_CTRL) && (modifiers & MOD_MASK_SHIFT)) {
oled_write_P(on_on_2, false);
} else if(modifiers & MOD_MASK_CTRL) {
oled_write_P(on_off_2, false);
Expand Down

0 comments on commit 7fc0f5c

Please sign in to comment.