From 1376642e40773971035a4fa3f9fdd39b2236fa77 Mon Sep 17 00:00:00 2001 From: ReFil <31960031+ReFil@users.noreply.github.com> Date: Wed, 10 Jan 2024 13:43:23 +0000 Subject: [PATCH] Fix test failures --- app/src/keymap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/keymap.c b/app/src/keymap.c index 3a0891e94f48..782239e827c3 100644 --- a/app/src/keymap.c +++ b/app/src/keymap.c @@ -91,11 +91,13 @@ static inline int set_layer_state(uint8_t layer, bool state) { if (old_state != _zmk_keymap_layer_state) { LOG_DBG("layer_changed: layer %d state %d", layer, state); ZMK_EVENT_RAISE(create_layer_state_changed(layer, state)); +#if ZMK_BLE_IS_CENTRAL int err = zmk_split_central_send_data(DATA_TAG_KEYMAP_STATE, sizeof(uint32_t), (uint8_t *)&_zmk_keymap_layer_state); if (err) { LOG_ERR("Keymap send failed (err %d)", err); } +#endif } return 0;