[Keyboard] Fix splitkb/corne OLED code (#24260)

This commit is contained in:
Antoine Bertin 2024-08-30 03:56:25 +02:00 committed by GitHub
parent fd65bd5ae0
commit d95690d89c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
@ -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);