From ef75a4b49748ae133cce0318429e511e9e080de5 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 6 Jul 2022 20:52:48 -0700 Subject: [PATCH 1/2] Only send debug info if keycode is mouse related --- keyboards/bastardkb/charybdis/charybdis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/keyboards/bastardkb/charybdis/charybdis.c b/keyboards/bastardkb/charybdis/charybdis.c index 23564899988d..b351b9b4e113 100644 --- a/keyboards/bastardkb/charybdis/charybdis.c +++ b/keyboards/bastardkb/charybdis/charybdis.c @@ -316,8 +316,10 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { pointing_device_send(); } # endif // !MOUSEKEY_ENABLE + if ((keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < CHARYBDIS_SAFE_RANGE) || IS_MOUSEKEY(keycode)) { + debug_charybdis_config_to_console(&g_charybdis_config); + } # endif // POINTING_DEVICE_ENABLE - debug_charybdis_config_to_console(&g_charybdis_config); return true; } From cede07190b4c1924b1f4b24f644d1fa6d9135d93 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Wed, 6 Jul 2022 21:17:35 -0700 Subject: [PATCH 2/2] Apply suggestion because drashna is too lazy to open in git locally --- keyboards/bastardkb/charybdis/charybdis.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keyboards/bastardkb/charybdis/charybdis.c b/keyboards/bastardkb/charybdis/charybdis.c index b351b9b4e113..995bc10ce184 100644 --- a/keyboards/bastardkb/charybdis/charybdis.c +++ b/keyboards/bastardkb/charybdis/charybdis.c @@ -316,7 +316,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) { pointing_device_send(); } # endif // !MOUSEKEY_ENABLE - if ((keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < CHARYBDIS_SAFE_RANGE) || IS_MOUSEKEY(keycode)) { + if (IS_MOUSEKEY(keycode) +# ifndef NO_CHARYBDIS_KEYCODES + || (keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < CHARYBDIS_SAFE_RANGE) +# endif + ) { debug_charybdis_config_to_console(&g_charybdis_config); } # endif // POINTING_DEVICE_ENABLE