From 773892434931b74bdf54474b73c909779daa9471 Mon Sep 17 00:00:00 2001 From: Willow Herring <31960031+ReFil@users.noreply.github.com> Date: Mon, 3 Nov 2025 00:01:08 +0000 Subject: [PATCH] feat(split): Add HID indicators and physical layout set to Wired split (#3103) --- app/src/split/peripheral.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/src/split/peripheral.c b/app/src/split/peripheral.c index 4157ffa22..e9317bb8b 100644 --- a/app/src/split/peripheral.c +++ b/app/src/split/peripheral.c @@ -11,12 +11,17 @@ #include #include +#include #include #include #include #include +#if IS_ENABLED(CONFIG_ZMK_SPLIT_PERIPHERAL_HID_INDICATORS) +#include +#endif + #include #include @@ -51,6 +56,15 @@ int zmk_split_transport_peripheral_command_handler( LOG_ERR("Failed to invoke behavior %s: %d", binding.behavior_dev, err); } } + case ZMK_SPLIT_TRANSPORT_CENTRAL_CMD_TYPE_SET_PHYSICAL_LAYOUT: { + zmk_physical_layouts_select(cmd.data.set_physical_layout.layout_idx); + } +#if IS_ENABLED(CONFIG_ZMK_SPLIT_PERIPHERAL_HID_INDICATORS) + case ZMK_SPLIT_TRANSPORT_CENTRAL_CMD_TYPE_SET_HID_INDICATORS: { + raise_zmk_hid_indicators_changed((struct zmk_hid_indicators_changed){ + .indicators = cmd.data.set_hid_indicators.indicators}); + } +#endif default: LOG_WRN("Unhandled command type %d", cmd.type); return -ENOTSUP;