Ocpp: fix status ignored when timestamp identical
This commit is contained in:
parent
f7e4e3dd9d
commit
269bb76c83
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue