Skip to content

Commit

Permalink
Updated function calls with missing reference. GPIO missing.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
4pplet authored and petejohanson committed Nov 30, 2020
1 parent 3bf770a commit 924a598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/drivers/zephyr/battery_voltage_divider.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 924a598

Please sign in to comment.