diff options
author | lokher <lokher@gmail.com> | 2022-12-23 15:25:45 +0800 |
---|---|---|
committer | lokher <lokher@gmail.com> | 2022-12-23 15:25:45 +0800 |
commit | e7d97ceb0442685030e966e32680ebcca76df301 (patch) | |
tree | 1f6ea6f36792a993603246b1d6507d3f75c4920e /keyboards/keychron/k2_pro | |
parent | 093ea22832cf9ab16715d93e77cc26418a60672f (diff) |
fix via not working issue due to incorrect return type of via_command_kb() in k2/6/8_pro.c
Diffstat (limited to 'keyboards/keychron/k2_pro')
-rw-r--r-- | keyboards/keychron/k2_pro/k2_pro.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/keyboards/keychron/k2_pro/k2_pro.c b/keyboards/keychron/k2_pro/k2_pro.c index 12e2494716..4b49a7854b 100644 --- a/keyboards/keychron/k2_pro/k2_pro.c +++ b/keyboards/keychron/k2_pro/k2_pro.c @@ -273,7 +273,7 @@ void battery_calculte_voltage(uint16_t value) { battery_set_voltage(voltage); } -void via_command_kb(uint8_t *data, uint8_t length) { +bool via_command_kb(uint8_t *data, uint8_t length) { switch (data[0]) { #ifdef KC_BLUETOOTH_ENABLE case 0xAA: @@ -285,7 +285,11 @@ void via_command_kb(uint8_t *data, uint8_t length) { factory_test_rx(data, length); break; #endif + default: + return false; } + + return true; } #if !defined(VIA_ENABLE) |