makes low battery light work

This commit is contained in:
Brendan Haines 2016-12-02 19:37:42 -07:00
parent 5ea835ef74
commit 4bfe585457

View File

@ -171,11 +171,13 @@ void loop() {
uint16_t vbat;
fona.getBattVoltage(&vbat);
if ( vbat < CHG_VLO ) {
digitalWrite( CHG_PIN, HIGH );
} else if ( vbat > CHG_VHI ) {
digitalWrite( CHG_PIN, LOW );
digitalWrite( LED_BAT_LOW, HIGH );
} else if ( vbat > CHG_VHI ) {
digitalWrite( CHG_PIN, HIGH );
} else {
digitalWrite( LED_BAT_LOW, LOW );
}
}