mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Pre-commit
This commit is contained in:
parent
6943963907
commit
cee1e11bff
2 changed files with 2 additions and 2 deletions
|
@ -226,7 +226,7 @@ void core_loop(void* task_time_us) {
|
||||||
if (millis() - previousMillisUpdateVal >= intervalUpdateValues) // Every 5s normally
|
if (millis() - previousMillisUpdateVal >= intervalUpdateValues) // Every 5s normally
|
||||||
{
|
{
|
||||||
previousMillisUpdateVal = millis();
|
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.
|
update_values(); // Update values heading towards inverter. Prepare for sending on CAN, or write directly to Modbus.
|
||||||
if (DUMMY_EVENT_ENABLED) {
|
if (DUMMY_EVENT_ENABLED) {
|
||||||
set_event(EVENT_DUMMY_ERROR, (uint8_t)millis());
|
set_event(EVENT_DUMMY_ERROR, (uint8_t)millis());
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../../USER_SETTINGS.h"
|
#include "../../../USER_SETTINGS.h"
|
||||||
#include "timer.h"
|
|
||||||
#include "../../lib/Uptime_Library/src/uptime.h"
|
#include "../../lib/Uptime_Library/src/uptime.h"
|
||||||
|
#include "timer.h"
|
||||||
|
|
||||||
#define EE_NOF_EVENT_ENTRIES 30
|
#define EE_NOF_EVENT_ENTRIES 30
|
||||||
#define EE_EVENT_ENTRY_SIZE sizeof(EVENT_LOG_ENTRY_TYPE)
|
#define EE_EVENT_ENTRY_SIZE sizeof(EVENT_LOG_ENTRY_TYPE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue