@@ -129,8 +129,8 @@ int invoke_locally(struct zmk_behavior_binding *binding, struct zmk_behavior_bin
129
129
}
130
130
}
131
131
132
- int zmk_keymap_apply_position_state (const bt_addr_le_t * source , int layer , uint32_t position ,
133
- bool pressed , int64_t timestamp ) {
132
+ int zmk_keymap_apply_position_state (zmk_position_state_changed_source_t source , int layer ,
133
+ uint32_t position , bool pressed , int64_t timestamp ) {
134
134
struct zmk_behavior_binding * binding = & zmk_keymap [layer ][position ];
135
135
const struct device * behavior ;
136
136
struct zmk_behavior_binding_event event = {
@@ -156,10 +156,10 @@ int zmk_keymap_apply_position_state(const bt_addr_le_t *source, int layer, uint3
156
156
return err ;
157
157
}
158
158
159
- char source_str [BT_ADDR_LE_STR_LEN ];
160
- bt_addr_le_to_str (source , source_str , sizeof (source_str ));
159
+ // char source_str[BT_ADDR_LE_STR_LEN];
160
+ // bt_addr_le_to_str(source, source_str, sizeof(source_str));
161
161
162
- LOG_DBG ("Behavior locality: %d, event source: %s" , locality , log_strdup (source_str ));
162
+ // LOG_DBG("Behavior locality: %d, event source: %s", locality, log_strdup(source_str));
163
163
164
164
switch (locality ) {
165
165
case BEHAVIOR_LOCALITY_CENTRAL :
@@ -184,8 +184,8 @@ int zmk_keymap_apply_position_state(const bt_addr_le_t *source, int layer, uint3
184
184
return - ENOTSUP ;
185
185
}
186
186
187
- int zmk_keymap_position_state_changed (const bt_addr_le_t * source , uint32_t position , bool pressed ,
188
- int64_t timestamp ) {
187
+ int zmk_keymap_position_state_changed (zmk_position_state_changed_source_t source , uint32_t position ,
188
+ bool pressed , int64_t timestamp ) {
189
189
if (pressed ) {
190
190
zmk_keymap_active_behavior_layer [position ] = _zmk_keymap_layer_state ;
191
191
}
0 commit comments