File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 142142 void setup (double defaultCapacity) {
143143 _wasInitialised = true ;
144144
145+ _pStorage->setup ();
146+
145147 // Input Pins
146148 pinMode (_pGpio->getPinInterrupt (), INPUT);
147149 pinMode (_pGpio->getPinPolarity (), INPUT);
Original file line number Diff line number Diff line change 2424 */
2525 class LithiumStorageBase {
2626 public:
27+ void setup () {};
28+
2729 inline virtual double getLastBatteryCapacity (double & defaultValue) = 0; // Abstract
2830 inline virtual void setLastBatteryCapacity (double & mAh ) = 0; // Abstract
2931
4042 private:
4143 Preferences _prefs;
4244 public:
43- LithiumStorageESP32 () : _prefs() {
45+ LithiumStorageESP32 () : _prefs() {}
46+
47+ void setup () {
4448 _prefs.begin (BATTERY, false );
4549 }
4650
You can’t perform that action at this time.
0 commit comments