Skip to content

Commit

Permalink
Merge pull request #11 from drashna/patch-1
Browse files Browse the repository at this point in the history
Only send debug info if keycode is mouse related
  • Loading branch information
0xcharly authored Jul 7, 2022
2 parents b098077 + cede071 commit 021cd12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion keyboards/bastardkb/charybdis/charybdis.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,14 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
pointing_device_send();
}
# endif // !MOUSEKEY_ENABLE
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
debug_charybdis_config_to_console(&g_charybdis_config);
return true;
}

Expand Down

0 comments on commit 021cd12

Please sign in to comment.