Skip to content

Commit

Permalink
Delta: fix status mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Aug 22, 2024
1 parent 7a17c44 commit 956227a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charger/delta.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ func (wb *Delta) Status() (api.ChargeStatus, error) {
// 8: Not ready
// 9: Faulted
switch s := encoding.Uint16(b); s {
case 0, 1, 2, 3:
case 0, 1, 2:
return api.StatusA, nil
case 5, 6, 7, 9:
case 3, 5, 6, 7, 9:
return api.StatusB, nil
case 4:
return api.StatusC, nil
Expand Down

0 comments on commit 956227a

Please sign in to comment.