From 3d7376d2e50adf9d807431161487e0eb19f52390 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sat, 28 Nov 2020 20:03:37 +0000 Subject: refactor(app): replace `config_info` with `config` See: https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html PR: #467 --- app/src/behaviors/behavior_hold_tap.c | 2 +- app/src/behaviors/behavior_reset.c | 2 +- app/src/behaviors/behavior_sticky_key.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/behaviors') diff --git a/app/src/behaviors/behavior_hold_tap.c b/app/src/behaviors/behavior_hold_tap.c index 50a9606..44a5117 100644 --- a/app/src/behaviors/behavior_hold_tap.c +++ b/app/src/behaviors/behavior_hold_tap.c @@ -305,7 +305,7 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap, enum decision_mome static int on_hold_tap_binding_pressed(struct zmk_behavior_binding *binding, struct zmk_behavior_binding_event event) { struct device *dev = device_get_binding(binding->behavior_dev); - const struct behavior_hold_tap_config *cfg = dev->config_info; + const struct behavior_hold_tap_config *cfg = dev->config; if (undecided_hold_tap != NULL) { LOG_DBG("ERROR another hold-tap behavior is undecided."); diff --git a/app/src/behaviors/behavior_reset.c b/app/src/behaviors/behavior_reset.c index d1233a5..97d0a1d 100644 --- a/app/src/behaviors/behavior_reset.c +++ b/app/src/behaviors/behavior_reset.c @@ -24,7 +24,7 @@ static int behavior_reset_init(struct device *dev) { return 0; }; static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding, struct zmk_behavior_binding_event event) { struct device *dev = device_get_binding(binding->behavior_dev); - const struct behavior_reset_config *cfg = dev->config_info; + const struct behavior_reset_config *cfg = dev->config; // TODO: Correct magic code for going into DFU? // See diff --git a/app/src/behaviors/behavior_sticky_key.c b/app/src/behaviors/behavior_sticky_key.c index b676e16..51c78ff 100644 --- a/app/src/behaviors/behavior_sticky_key.c +++ b/app/src/behaviors/behavior_sticky_key.c @@ -128,7 +128,7 @@ static int stop_timer(struct active_sticky_key *sticky_key) { static int on_sticky_key_binding_pressed(struct zmk_behavior_binding *binding, struct zmk_behavior_binding_event event) { struct device *dev = device_get_binding(binding->behavior_dev); - const struct behavior_sticky_key_config *cfg = dev->config_info; + const struct behavior_sticky_key_config *cfg = dev->config; struct active_sticky_key *sticky_key; sticky_key = find_sticky_key(event.position); if (sticky_key != NULL) { -- cgit v1.2.3