mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Events should be initialised before everything that can generate an event.
This commit is contained in:
parent
73dd6c36de
commit
c07aa7f950
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue