|
|
@ -58,8 +58,8 @@ static ssize_t split_svc_run_behavior(struct bt_conn *conn, const struct bt_gatt |
|
|
|
.param2 = payload->data.param2, |
|
|
|
.param2 = payload->data.param2, |
|
|
|
.behavior_dev = payload->behavior_dev, |
|
|
|
.behavior_dev = payload->behavior_dev, |
|
|
|
}; |
|
|
|
}; |
|
|
|
LOG_DBG("INVOKE THE BEHAVIOR: %s with params %d %d", log_strdup(binding.behavior_dev), |
|
|
|
LOG_DBG("%s with params %d %d: pressed? %d", log_strdup(binding.behavior_dev), |
|
|
|
binding.param1, binding.param2); |
|
|
|
binding.param1, binding.param2, payload->data.state); |
|
|
|
struct zmk_behavior_binding_event event = {.position = payload->data.position, |
|
|
|
struct zmk_behavior_binding_event event = {.position = payload->data.position, |
|
|
|
.timestamp = k_uptime_get()}; |
|
|
|
.timestamp = k_uptime_get()}; |
|
|
|
int err; |
|
|
|
int err; |
|
|
|