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,