fixup! feat: Refactor behaviors, sensor to raise behavior_binding_event

This commit is contained in:
Nicolas Munnich 2025-11-30 11:39:42 +00:00
parent aeb00fd348
commit 5fcc0c80ab
1 changed files with 1 additions and 4 deletions

View File

@ -93,10 +93,7 @@ static int invoke_locally(struct zmk_behavior_binding *binding,
int behavior_listener(const zmk_event_t *eh) {
struct zmk_behavior_binding_event *event = as_zmk_behavior_binding_event(eh);
if (event == NULL) {
LOG_ERR("An invalid event was passed as an argument somehow.");
return -EINVAL;
}
__ASSERT(event != NULL, "An invalid event was passed as an argument somehow.");
const struct device *behavior = zmk_behavior_get_binding(event->binding->behavior_dev);
if (!behavior) {