From 39cb241cd5e9aedf122fac4eb2dd9977ddb92667 Mon Sep 17 00:00:00 2001 From: raymdl Date: Thu, 12 Nov 2026 14:16:10 -0500 Subject: [PATCH] Enable wireless raw HID for the K10 HE Define WILRESS_RAW_ENABLE for the K10 HE so raw HID packets from the 2.4 GHz receiver reach the keyboard, which lets Keychron Launcher configure it without a cable. The guarded code called via_raw_hid_receive(), which is not defined anywhere in the tree, so enabling the define did not link. Call the existing three-argument raw_hid_receive() with RAW_HID_SRC_WIRELESS instead, so replies are routed back over the wireless transport. Co-Authored-By: Claude Fable 5.2 --- keyboards/keychron/common/wireless/wireless.c | 2 +- keyboards/keychron/k10_he/config.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/keyboards/keychron/common/wireless/wireless.c b/keyboards/keychron/common/wireless/wireless.c index f5483be3be11..d80e6d83c6f0 100644 --- a/keyboards/keychron/common/wireless/wireless.c +++ b/keyboards/keychron/common/wireless/wireless.c @@ -610,7 +610,7 @@ void wireless_event_task(void) { #if defined(RAW_ENABLE) && defined(WILRESS_RAW_ENABLE) case EVT_RAW_HID: # ifdef VIA_ENABLE - via_raw_hid_receive(RAW_HID_SRC_WIRELESS, event.params.raw_hid_data, 32); + raw_hid_receive(RAW_HID_SRC_WIRELESS, event.params.raw_hid_data, 32); # else kc_raw_hid_rx(RAW_HID_SRC_WIRELESS, event.params.raw_hid_data, 32); # endif diff --git a/keyboards/keychron/k10_he/config.h b/keyboards/keychron/k10_he/config.h index b2df49952b2f..1fe848ddcbc6 100644 --- a/keyboards/keychron/k10_he/config.h +++ b/keyboards/keychron/k10_he/config.h @@ -58,6 +58,9 @@ /* Wireless Configuration */ #ifdef LK_WIRELESS_ENABLE +/* Accept raw HID commands from the host over the wireless link */ +# define WILRESS_RAW_ENABLE + /* Hardware Configuration */ # define SPI_SCK_PIN A5 # define SPI_MISO_PIN A6