From 1a862d73d0a54251e4ad1e8204f5bcaba311ea8d Mon Sep 17 00:00:00 2001 From: Nick Winans Date: Tue, 16 Feb 2021 13:42:21 -0600 Subject: [PATCH] Update app/src/ext_power_generic.c Co-authored-by: Pete Johanson --- app/src/ext_power_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/ext_power_generic.c b/app/src/ext_power_generic.c index 1df831a79293..1f2e0d79028a 100644 --- a/app/src/ext_power_generic.c +++ b/app/src/ext_power_generic.c @@ -216,7 +216,7 @@ static const struct ext_power_generic_config config = { .label = DT_INST_GPIO_LABEL(0, control_gpios), .pin = DT_INST_GPIO_PIN(0, control_gpios), .flags = DT_INST_GPIO_FLAGS(0, control_gpios), - COND_CODE_0(DT_INST_NODE_HAS_PROP(0, init_delay_ms), (0), (DT_INST_PROP(0, init_delay_ms)))}; + .init_delay_ms = DT_INST_PROP_OR(0, init_delay_ms, 0)}; static struct ext_power_generic_data data = { .status = false,