Events should be initialised before everything that can generate an event.

This commit is contained in:
mvgalen 2025-02-11 16:07:40 +01:00
parent 73dd6c36de
commit c07aa7f950

View file

@ -80,6 +80,8 @@ void setup() {
// We print this after setting up serial, such that is also printed to serial with DEBUG_VIA_USB set.
logging.printf("Battery emulator %s build " __DATE__ " " __TIME__ "\n", version_number);
init_events();
init_stored_settings();
#ifdef WIFI
@ -92,8 +94,6 @@ void setup() {
TASK_CONNECTIVITY_PRIO, &logging_loop_task, WIFI_CORE);
#endif
init_events();
init_CAN();
init_contactors();