mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -07:00
makes low battery light work
This commit is contained in:
parent
5ea835ef74
commit
4bfe585457
|
@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user