mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
clean up and add ifdef's for event loop stuff
This commit is contained in:
parent
8e38e8562f
commit
9b47043aba
4 changed files with 21 additions and 13 deletions
|
@ -186,7 +186,9 @@ void loop() {
|
|||
{
|
||||
previousMillisUpdateVal = millis();
|
||||
update_values(); // Update values heading towards inverter. Prepare for sending on CAN, or write directly to Modbus.
|
||||
set_event(EVENT_DUMMY, (uint8_t)millis());
|
||||
if(DUMMY_EVENT_ENABLED) {
|
||||
set_event(EVENT_DUMMY, (uint8_t)millis());
|
||||
}
|
||||
}
|
||||
|
||||
// Output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue