diff --git a/Software/Software.ino b/Software/Software.ino index 3f999981..edb3e8a1 100644 --- a/Software/Software.ino +++ b/Software/Software.ino @@ -226,7 +226,7 @@ void core_loop(void* task_time_us) { if (millis() - previousMillisUpdateVal >= intervalUpdateValues) // Every 5s normally { previousMillisUpdateVal = millis(); - update_SOC(); // Check if real or calculated SOC% value should be sent + update_SOC(); // Check if real or calculated SOC% value should be sent update_values(); // Update values heading towards inverter. Prepare for sending on CAN, or write directly to Modbus. if (DUMMY_EVENT_ENABLED) { set_event(EVENT_DUMMY_ERROR, (uint8_t)millis()); diff --git a/Software/src/devboard/utils/events.cpp b/Software/src/devboard/utils/events.cpp index a86ec8f8..d49ba030 100644 --- a/Software/src/devboard/utils/events.cpp +++ b/Software/src/devboard/utils/events.cpp @@ -5,8 +5,8 @@ #endif #include "../../../USER_SETTINGS.h" -#include "timer.h" #include "../../lib/Uptime_Library/src/uptime.h" +#include "timer.h" #define EE_NOF_EVENT_ENTRIES 30 #define EE_EVENT_ENTRY_SIZE sizeof(EVENT_LOG_ENTRY_TYPE)