Skip to content

Commit

Permalink
apply hid fix to via keymap as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cbirklbauer committed Mar 20, 2024
1 parent 05c6062 commit 4da7263
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion keyboards/handwired/polykybd/split72/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2005,9 +2005,16 @@ void suspend_wakeup_init_kb(void) {
}

void via_custom_value_command_kb(uint8_t *data, uint8_t length) {
memset(data, 0, length);
const char * name = "P0.PolyKybd Split72";

if(debug_enable && length < 33)
{
char cmdstring[33];
memcpy(cmdstring, data, length);
cmdstring[length] = 0; // Make sure string ends with 0
dprintf("DEBUG: custom hid or via command, length=%d cmd=%s\n", length, cmdstring);
}

if(length>1 && (data[0] == /*via_command_id::*/id_custom_save || data[0] == 'P')) {
switch(data[1]) {
case /*via_channel_id::*/id_qmk_backlight_channel ... /*via_channel_id::*/id_qmk_led_matrix_channel:
Expand Down

0 comments on commit 4da7263

Please sign in to comment.