Skip to content

Commit

Permalink
[Keyboard] Fix compilation issues for Charybdis/Dilemma (#17791)
Browse files Browse the repository at this point in the history
* [Keyboard] Fix debug printing for Charybdis/Dilemma

* Fix compliation issue for dilemma
  • Loading branch information
drashna authored Jul 26, 2022
1 parent 77ed0fe commit 928bbde
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
12 changes: 7 additions & 5 deletions keyboards/bastardkb/charybdis/charybdis.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ static void debug_charybdis_config_to_console(charybdis_config_t* config) {
dprintf("(charybdis) process_record_kb: config = {\n"
"\traw = 0x%X,\n"
"\t{\n"
"\t\tis_dragscroll_enabled=%b\n"
"\t\tis_sniping_enabled=%b\n"
"\t\tdefault_dpi=0x%X (%ld)\n"
"\t\tsniping_dpi=0x%X (%ld)\n"
"\t\tis_dragscroll_enabled=%u\n"
"\t\tis_sniping_enabled=%u\n"
"\t\tdefault_dpi=0x%X (%u)\n"
"\t\tsniping_dpi=0x%X (%u)\n"
"\t}\n"
"}\n",
config->raw, config->is_dragscroll_enabled, config->is_sniping_enabled, config->pointer_default_dpi, get_pointer_default_dpi(config), config->pointer_sniping_dpi, get_pointer_sniping_dpi(config));
Expand Down Expand Up @@ -314,7 +314,9 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
}
# endif // !MOUSEKEY_ENABLE
# endif // POINTING_DEVICE_ENABLE
debug_charybdis_config_to_console(&g_charybdis_config);
if ((keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < CHARYBDIS_SAFE_RANGE) || IS_MOUSEKEY(keycode)) {
debug_charybdis_config_to_console(&g_charybdis_config);
}
return true;
}

Expand Down
11 changes: 7 additions & 4 deletions keyboards/bastardkb/dilemma/dilemma.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ static void debug_dilemma_config_to_console(dilemma_config_t* config) {
dprintf("(dilemma) process_record_kb: config = {\n"
"\traw = 0x%X,\n"
"\t{\n"
"\t\tis_dragscroll_enabled=%b\n"
"\t\tis_sniping_enabled=%b\n"
"\t\tdefault_dpi=0x%X (%ld)\n"
"\t\tsniping_dpi=0x%X (%ld)\n"
"\t\tis_dragscroll_enabled=%u\n"
"\t\tis_sniping_enabled=%u\n"
"\t\tdefault_dpi=0x%X (%u)\n"
"\t\tsniping_dpi=0x%X (%u)\n"
"\t}\n"
"}\n",
config->raw, config->is_dragscroll_enabled, config->is_sniping_enabled, config->pointer_default_dpi, get_pointer_default_dpi(config), config->pointer_sniping_dpi, get_pointer_sniping_dpi(config));
Expand Down Expand Up @@ -308,6 +308,9 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record) {
# endif // !NO_DILEMMA_KEYCODES
# endif // POINTING_DEVICE_ENABLE
debug_dilemma_config_to_console(&g_dilemma_config);
if ((keycode >= POINTER_DEFAULT_DPI_FORWARD && keycode < DILEMMA_SAFE_RANGE) || IS_MOUSEKEY(keycode)) {
debug_dilemma_config_to_console(&g_dilemma_config);
}
return true;
}

Expand Down
2 changes: 2 additions & 0 deletions keyboards/bastardkb/dilemma/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ POINTING_DEVICE_DRIVER = cirque_pinnacle_i2c

SPLIT_KEYBOARD = yes
LAYOUTS = split_3x5_2

DEFAULT_FOLDER = bastardkb/dilemma/splinky

0 comments on commit 928bbde

Please sign in to comment.