summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/k2_pro/k2_pro.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/k2_pro/k2_pro.c')
-rw-r--r--keyboards/keychron/k2_pro/k2_pro.c6
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)