reverted change in battery_voltage_divider. Updated pin per Nicells suggestion.

This commit is contained in:
4pplet 2020-11-14 10:32:18 +01:00
parent f29ae36bfd
commit e7a240e1a9
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@
io-channels = <&adc 1>; io-channels = <&adc 1>;
output-ohms = <100000>; output-ohms = <100000>;
full-ohms = <(100000 + 100000)>; full-ohms = <(100000 + 100000)>;
power-gpios = <&gpio1 15 1>; // the 1 indicates active high? power-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
}; };
leds { leds {

View file

@ -205,8 +205,8 @@ static const struct bvd_config bvd_cfg = {
.power_gpios = .power_gpios =
{ {
DT_INST_GPIO_LABEL(0, power_gpios), DT_INST_GPIO_LABEL(0, power_gpios),
DT_INST_GPIO_PIN(0, power_gpios), DT_INST_PIN(0, power_gpios),
DT_INST_GPIO_FLAGS(0, power_gpios), DT_INST_FLAGS(0, power_gpios),
}, },
#endif #endif
.output_ohm = DT_INST_PROP(0, output_ohms), .output_ohm = DT_INST_PROP(0, output_ohms),