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 142
142
void setup (double defaultCapacity) {
143
143
_wasInitialised = true ;
144
144
145
+ _pStorage->setup ();
146
+
145
147
// Input Pins
146
148
pinMode (_pGpio->getPinInterrupt (), INPUT);
147
149
pinMode (_pGpio->getPinPolarity (), INPUT);
Original file line number Diff line number Diff line change 24
24
*/
25
25
class LithiumStorageBase {
26
26
public:
27
+ void setup () {};
28
+
27
29
inline virtual double getLastBatteryCapacity (double & defaultValue) = 0; // Abstract
28
30
inline virtual void setLastBatteryCapacity (double & mAh ) = 0; // Abstract
29
31
40
42
private:
41
43
Preferences _prefs;
42
44
public:
43
- LithiumStorageESP32 () : _prefs() {
45
+ LithiumStorageESP32 () : _prefs() {}
46
+
47
+ void setup () {
44
48
_prefs.begin (BATTERY, false );
45
49
}
46
50
You can’t perform that action at this time.
0 commit comments