Delta: fix status mapping

Fixes #15592
This commit is contained in:
premultiply 2024-08-22 09:05:27 +02:00 • committed by GitHub
parent 7a17c44d2c
commit 956227a547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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