Fixing stalled MCU if solar is connected before battery

(the change in dcdc.cpp fixes the failed unit-test in previous commit, which didn't find min/max functions)
This commit is contained in:
Martin Jaeger
2019-06-16 14:46:54 +02:00
parent 15d5f0ee71
commit 96d26b5c34
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -156,6 +156,7 @@ int main()
wait(2); // safety feature: be able to re-flash before starting
control_timer_start(CONTROL_FREQUENCY);
wait(0.1); // necessary to prevent MCU from randomly getting stuck here if PV panel is connected before battery
// the main loop is suitable for slow tasks like communication (even blocking wait allowed)
time_t last_call = timestamp;