From 5d6d9594212073ca52b80a1a949510187af47b13 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Sun, 9 Apr 2023 22:41:32 +1000 Subject: Fix up via keymap builds. (#20383) * Fix up via keymap builds. - Usages of old IS_PRESSED. * Fix up bad code. * Fix up bad code. --- keyboards/monarch/keymaps/via/keymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keyboards/monarch') diff --git a/keyboards/monarch/keymaps/via/keymap.c b/keyboards/monarch/keymaps/via/keymap.c index 9fded17e9e..c70f9c213b 100644 --- a/keyboards/monarch/keymaps/via/keymap.c +++ b/keyboards/monarch/keymaps/via/keymap.c @@ -31,7 +31,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_ON, - _______, _______, _______, BL_TOGG, _______, BL_DOWN, BL_OFF, BL_UP, + _______, _______, _______, BL_TOGG, _______, BL_DOWN, BL_OFF, BL_UP, _______, _______ ), [2] = LAYOUT_all( @@ -65,13 +65,13 @@ keyevent_t encoder_cw = { }; void matrix_scan_user(void) { - if (IS_PRESSED(encoder_ccw)) { + if (encoder_ccw.pressed) { encoder_ccw.pressed = false; encoder_ccw.time = timer_read(); action_exec(encoder_ccw); } - if (IS_PRESSED(encoder_cw)) { + if (encoder_cw.pressed) { encoder_cw.pressed = false; encoder_cw.time = timer_read(); action_exec(encoder_cw); -- cgit v1.2.3