Browse Source

Added missing checks for fuel gauge being present

master
Mike C 6 years ago
parent
commit
6333907f5a
  1. 8
      src/src.ino

8
src/src.ino

@ -147,12 +147,16 @@ void loop() {
if (DEBUG) {
Serial.println("SLEEPING!");
}
fuelGauge.sleep();
if (max_found) {
fuelGauge.sleep();
}
neopix.setBrightness(0);
neopix.show();
delay(250); // Be sure that everything is settled before going to sleep
Sleepy::loseSomeTime(SLEEP_INTERVAL);
fuelGauge.awake();
if (max_found) {
fuelGauge.awake();
}
neopix.setBrightness(brightness);
}
}

Loading…
Cancel
Save