Skip to content

Commit

Permalink
Switch to behavior_get_binding
Browse files Browse the repository at this point in the history
  • Loading branch information
urob committed Dec 12, 2024
1 parent d7da248 commit 9493a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/behaviors/behavior_leader_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding,
LOG_ERR("Unable to activate leader key. Previous sequence is still pressed.");
return ZMK_BEHAVIOR_OPAQUE;
}
const struct device *dev = device_get_binding(binding->behavior_dev);
const struct device *dev = zmk_behavior_get_binding(binding->behavior_dev);
activate_leader_key(dev->config);
return ZMK_BEHAVIOR_OPAQUE;
}
Expand Down

0 comments on commit 9493a29

Please sign in to comment.