From 924a598920cf5894970bb98ae825663640d32bd7 Mon Sep 17 00:00:00 2001 From: 4pplet <4pplet@protonmail.com> Date: Sat, 14 Nov 2020 10:23:41 +0100 Subject: [PATCH] Updated function calls with missing reference. GPIO missing. Updated function calls with missing reference. GPIO missing. To my understanding: DT_INST_GPIO_PIN() should be called instead if DT_INST_PIN() DT_INST_GPIO_FLAGS() should be called instead if DT_INST_GPIO_FLAGS() Current implementation does not compile when using control pin. --- app/drivers/zephyr/battery_voltage_divider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/drivers/zephyr/battery_voltage_divider.c b/app/drivers/zephyr/battery_voltage_divider.c index b94e2a27..d634dfd9 100644 --- a/app/drivers/zephyr/battery_voltage_divider.c +++ b/app/drivers/zephyr/battery_voltage_divider.c @@ -205,8 +205,8 @@ static const struct bvd_config bvd_cfg = { .power_gpios = { DT_INST_GPIO_LABEL(0, power_gpios), - DT_INST_PIN(0, power_gpios), - DT_INST_FLAGS(0, power_gpios), + DT_INST_GPIO_PIN(0, power_gpios), + DT_INST_GPIO_FLAGS(0, power_gpios), }, #endif .output_ohm = DT_INST_PROP(0, output_ohms),