Skip to content

Commit 383cf8d

Browse files
committed
Fix "divert_active" topic which was no updated first time with the current value
1 parent 55e9667 commit 383cf8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/divert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ void DivertTask::update_state()
245245
if(_state != current_evse_state)
246246
{
247247
_state = current_evse_state;
248-
event["divert_active"] = isActive();
249248
}
250249
}
251250

251+
event["divert_active"] = isActive();
252252
event["charge_rate"] = _charge_rate;
253253
event["trigger_current"] = trigger_current;
254254
event["voltage"] = voltage;

0 commit comments

Comments
 (0)