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 5, 2023
1 parent e707c6c commit 1906ed4
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 1906ed4

Please sign in to comment.