From 9ee753f1a47b57b67028190914711f96430754df Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 14 May 2019 10:03:49 -0400 Subject: [PATCH] Add reset and quick start to fuel gauge to help with battery swaps --- hardware/arduino/Plant_Monitor/ino/ino.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hardware/arduino/Plant_Monitor/ino/ino.ino b/hardware/arduino/Plant_Monitor/ino/ino.ino index 2a89b21..6f689a9 100644 --- a/hardware/arduino/Plant_Monitor/ino/ino.ino +++ b/hardware/arduino/Plant_Monitor/ino/ino.ino @@ -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); }