Improved command input

Now handles buffer full condition gracefully. Originally a full buffer
would have prevented any further command processing until reboot

Changed buffer types to minimize the number of explicit cast we are
using
This commit is contained in:
Hogthrob
2019-08-28 17:39:32 +02:00
committed by Martin Jaeger
parent a1098aaf71
commit 4764e0a5d0
7 changed files with 116 additions and 95 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ int main()
control_timer_start(CONTROL_FREQUENCY);
wait(0.1); // necessary to prevent MCU from randomly getting stuck here if PV panel is connected before battery
sleep_manager_lock_deep_sleep();
// sleep_manager_lock_deep_sleep();
// the main loop is suitable for slow tasks like communication (even blocking wait allowed)
time_t last_call = timestamp;