From 3d526670c5e1e8fc556c9a3f73c27687d936fa6a Mon Sep 17 00:00:00 2001 From: Antoine Bertin Date: Fri, 30 Aug 2024 03:56:25 +0200 Subject: [PATCH] [Keyboard] Fix splitkb/corne OLED code (#24260) --- keyboards/splitkb/aurora/corne/corne.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/splitkb/aurora/corne/corne.c b/keyboards/splitkb/aurora/corne/corne.c index d95a4480211d..134542980495 100644 --- a/keyboards/splitkb/aurora/corne/corne.c +++ b/keyboards/splitkb/aurora/corne/corne.c @@ -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);