Skip to content

Commit

Permalink
Ocpp: fix meter watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply committed Aug 20, 2024
1 parent 29efcce commit d9dd501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/ocpp/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (conn *Connector) WatchDog(timeout time.Duration) {
tick := time.NewTicker(2 * time.Second)
for ; true; <-tick.C {
conn.mu.Lock()
update := conn.txnId != 0 && conn.clock.Since(conn.meterUpdated) > timeout
update := conn.clock.Since(conn.meterUpdated) > timeout
conn.mu.Unlock()

if update {
Expand Down

0 comments on commit d9dd501

Please sign in to comment.