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 itsme-zeix committed Oct 2, 2024
1 parent a9acde2 commit 3d52667
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 3d52667

Please sign in to comment.