diff options
author | Peter Johanson <[email protected]> | 2024-08-13 03:30:39 -0600 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-09-05 12:22:08 -0600 |
commit | 782695f4a9bc3bb31dd68846bdc1c274a5a4694d (patch) | |
tree | 352efe294aa1f3471adec2d4999f40858e24f368 /app/src | |
parent | e0339a2a57c33b86e351f31b04345ee8c984b075 (diff) | |
download | zmk-782695f4a9bc3bb31dd68846bdc1c274a5a4694d.tar.gz zmk-782695f4a9bc3bb31dd68846bdc1c274a5a4694d.zip |
fix: Fixes for CRC16 local IDs.
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/keymap.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/src/keymap.c b/app/src/keymap.c index 7afd951c03..dabe338d07 100644 --- a/app/src/keymap.c +++ b/app/src/keymap.c @@ -841,10 +841,11 @@ static int keymap_handle_set(const char *name, size_t len, settings_read_cb read binding_setting.behavior_local_id); } - zmk_keymap[layer][key_position] = (struct zmk_behavior_binding){ + zmk_keymap[layer][key_position] = (struct zmk_behavior_binding) { +#if IS_ENABLED(CONFIG_ZMK_BEHAVIOR_LOCAL_IDS_IN_BINDINGS) .local_id = binding_setting.behavior_local_id, - .behavior_dev = name, - .param1 = binding_setting.param1, +#endif + .behavior_dev = name, .param1 = binding_setting.param1, .param2 = binding_setting.param2, }; } @@ -869,6 +870,7 @@ static int keymap_handle_set(const char *name, size_t len, settings_read_cb read }; static int keymap_handle_commit(void) { +#if IS_ENABLED(CONFIG_ZMK_BEHAVIOR_LOCAL_IDS_IN_BINDINGS) for (int l = 0; l < ZMK_KEYMAP_LAYERS_LEN; l++) { for (int p = 0; p < ZMK_KEYMAP_LEN; p++) { struct zmk_behavior_binding *binding = &zmk_keymap[l][p]; @@ -884,6 +886,7 @@ static int keymap_handle_commit(void) { } } } +#endif return 0; } |