Add reset and quick start to fuel gauge to help with battery swaps

This commit is contained in:
KemoNine 2019-05-14 10:03:49 -04:00
parent 3a83bc5b43
commit 9ee753f1a4
1 changed files with 6 additions and 1 deletions

View File

@ -59,6 +59,11 @@ void setup()
{
// Initialize Fuel Gauge
FuelGauge.begin();
delay(100);
FuelGauge.reset();
delay(100);
FuelGauge.quickstart();
delay(100);
// Initialize display
display.init(115200);
@ -153,5 +158,5 @@ void loop()
display.hibernate();
// Delay looping (deep sleep goes here in the future)
delay(HOUR);
delay(10*60*SECOND);
}