Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Sep 14, 2024
1 parent 939b9c1 commit 518ba81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charger/ocpp/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/evcc-io/evcc/api"
"github.com/lorenzodonini/ocpp-go/ocpp"
"github.com/lorenzodonini/ocpp-go/ocpp1.6/types"
"github.com/lorenzodonini/ocpp-go/ocppj"
)

// wait waits for a CP roundtrip with timeout
Expand All @@ -20,7 +21,7 @@ func wait(err error, rc chan error) error {
}

oe := new(ocpp.Error)
if errors.As(err, &oe) {
if errors.As(err, &oe) && oe.Code == ocppj.GenericError {
err = api.ErrTimeout
}
}
Expand Down

0 comments on commit 518ba81

Please sign in to comment.