refactor: Condition source props on CONFIG_ZMK_SPLIT

This commit is contained in:
Cem Aksoylar
2024-08-17 21:03:43 -07:00
committed by Pete Johanson
parent b249135742
commit fb18a4d871
11 changed files with 86 additions and 34 deletions

View File

@@ -586,7 +586,9 @@ int zmk_keymap_apply_position_state(uint8_t source, zmk_keymap_layer_id_t layer_
.layer = layer_id,
.position = position,
.timestamp = timestamp,
#if IS_ENABLED(CONFIG_ZMK_SPLIT)
.source = source,
#endif
};
LOG_DBG("layer_id: %d position: %d, binding name: %s", layer_id, position,