From 85984902cfcfd852daf335f67cb97d6520531def Mon Sep 17 00:00:00 2001 From: Stefan Kerkmann Date: Sat, 17 Dec 2022 15:06:27 +0100 Subject: Introduce IS_EVENT instead of !IS_NOEVENT (#19366) --- quantum/action.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quantum/action.c') diff --git a/quantum/action.c b/quantum/action.c index 2634dff18c..f6fbb999c8 100644 --- a/quantum/action.c +++ b/quantum/action.c @@ -70,7 +70,7 @@ __attribute__((weak)) bool pre_process_record_quantum(keyrecord_t *record) { * FIXME: Needs documentation. */ void action_exec(keyevent_t event) { - if (!IS_NOEVENT(event)) { + if (IS_EVENT(event)) { ac_dprintf("\n---- action_exec: start -----\n"); ac_dprintf("EVENT: "); debug_event(event); @@ -87,7 +87,7 @@ void action_exec(keyevent_t event) { #ifdef SWAP_HANDS_ENABLE // Swap hands handles both keys and encoders, if ENCODER_MAP_ENABLE is defined. - if (!IS_NOEVENT(event)) { + if (IS_EVENT(event)) { process_hand_swap(&event); } #endif @@ -125,7 +125,7 @@ void action_exec(keyevent_t event) { if (IS_NOEVENT(record.event) || pre_process_record_quantum(&record)) { process_record(&record); } - if (!IS_NOEVENT(record.event)) { + if (IS_EVENT(record.event)) { ac_dprintf("processed: "); debug_record(record); dprintln(); -- cgit v1.2.3