We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05b262 commit a33bcd6Copy full SHA for a33bcd6
1 file changed
src/main.cpp
@@ -146,14 +146,17 @@ void setup()
146
Datastore.init(scheduler);
147
RestartHelper.init(scheduler);
148
149
- // OpenDTU-OnBattery-specific initializations go below
150
- RuntimeData.init(scheduler);
151
- RuntimeData.read(); // make runtime data available as early as possible
+ // OpenDTU-OnBattery-specific initializations go between here...
152
SolarCharger.init(scheduler);
153
PowerMeter.init(scheduler);
154
PowerLimiter.init(scheduler);
155
GridCharger.init(scheduler);
156
Battery.init(scheduler);
+ // ... and here (before RuntimeData)
+
157
+ // Must be done after all other components have been initialized
158
+ RuntimeData.init(scheduler);
159
+ RuntimeData.read();
160
161
ESP_LOGI(TAG, "Startup complete");
162
}
0 commit comments