parent
7a17c44d2c
commit
956227a547
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue