Ocpp: fix status ignored when timestamp identical

This commit is contained in:
andig 2024-04-23 10:59:19 +02:00
parent f7e4e3dd9d
commit 269bb76c83

View file

@ -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) {