Skip to content

Commit

Permalink
Fix "divert_active" topic which was no updated first time with the cu…
Browse files Browse the repository at this point in the history
…rrent value
  • Loading branch information
mathieucarbou committed May 6, 2023
1 parent 55e9667 commit 383cf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/divert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ void DivertTask::update_state()
if(_state != current_evse_state)
{
_state = current_evse_state;
event["divert_active"] = isActive();
}
}

event["divert_active"] = isActive();
event["charge_rate"] = _charge_rate;
event["trigger_current"] = trigger_current;
event["voltage"] = voltage;
Expand Down

0 comments on commit 383cf8d

Please sign in to comment.