Wait for vehicle wakeup (#1262)

This commit is contained in:
andig 2021-08-02 10:19:07 +02:00 • committed by GitHub
parent 2b430ae9b0
commit e8e5584003
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View file

@ -80,7 +80,7 @@ func main() {
soc, err := v.SoC()
if err != nil {
if errors.As(err, &api.ErrMustRetry) {
if errors.Is(err, api.ErrMustRetry) {
time.Sleep(5 * time.Second)
continue
}