fix: Fixes for CRC16 local IDs.
This commit is contained in:
parent
5616e017d7
commit
27531aff7e
1 changed files with 6 additions and 3 deletions
|
@ -841,10 +841,11 @@ static int keymap_handle_set(const char *name, size_t len, settings_read_cb read
|
||||||
binding_setting.behavior_local_id);
|
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,
|
.local_id = binding_setting.behavior_local_id,
|
||||||
.behavior_dev = name,
|
#endif
|
||||||
.param1 = binding_setting.param1,
|
.behavior_dev = name, .param1 = binding_setting.param1,
|
||||||
.param2 = binding_setting.param2,
|
.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) {
|
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 l = 0; l < ZMK_KEYMAP_LAYERS_LEN; l++) {
|
||||||
for (int p = 0; p < ZMK_KEYMAP_LEN; p++) {
|
for (int p = 0; p < ZMK_KEYMAP_LEN; p++) {
|
||||||
struct zmk_behavior_binding *binding = &zmk_keymap[l][p];
|
struct zmk_behavior_binding *binding = &zmk_keymap[l][p];
|
||||||
|
@ -884,6 +886,7 @@ static int keymap_handle_commit(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue