Skip to content

Commit

Permalink
Ocpp: fix status ignored when timestamp identical
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 23, 2024
1 parent f7e4e3d commit 269bb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/ocpp/connector_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (conn *Connector) timestampValid(t time.Time) bool {
}

// reject older values than we already have
return t.After(conn.status.Timestamp.Time)
return !t.Before(conn.status.Timestamp.Time)
}

func (conn *Connector) StatusNotification(request *core.StatusNotificationRequest) (*core.StatusNotificationConfirmation, error) {
Expand Down

0 comments on commit 269bb76

Please sign in to comment.