From dedc54a328ab900f47da8478bd9c6b7d14891e15 Mon Sep 17 00:00:00 2001 From: Stefan Kerkmann Date: Thu, 15 Dec 2022 23:38:25 +0100 Subject: [Core] guard action related debug messages (#19348) --- quantum/action.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'quantum/action.h') diff --git a/quantum/action.h b/quantum/action.h index 2bc46429b2..e4d28ba947 100644 --- a/quantum/action.h +++ b/quantum/action.h @@ -112,7 +112,19 @@ bool is_tap_action(action_t action); void process_record_tap_hint(keyrecord_t *record); #endif -/* debug */ +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Helpers + +#ifdef ACTION_DEBUG +# include "debug.h" +# include "print.h" +# define ac_dprintf(...) dprintf(__VA_ARGS__) +#else +# define ac_dprintf(...) \ + do { \ + } while (0) +#endif + void debug_event(keyevent_t event); void debug_record(keyrecord_t record); void debug_action(action_t action); -- cgit v1.2.3 From 9908ed7ecd1bc0c45f0322b959811bd8fd641961 Mon Sep 17 00:00:00 2001 From: Albert Y <76888457+filterpaper@users.noreply.github.com> Date: Wed, 15 Feb 2023 04:44:18 +0800 Subject: Add swap hands status function (#19831) Co-authored-by: Drashna Jaelre --- quantum/action.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'quantum/action.h') diff --git a/quantum/action.h b/quantum/action.h index e4d28ba947..8ef6db6781 100644 --- a/quantum/action.h +++ b/quantum/action.h @@ -84,6 +84,13 @@ typedef uint32_t swap_state_row_t; # error "MATRIX_COLS: invalid value" # endif +/** + * @brief Get the swap hands enable state + * + * @return true + * @return false + */ +bool is_swap_hands_on(void); void process_hand_swap(keyevent_t *record); #endif -- cgit v1.2.3