Heidelberg: log decimal status (#2234)

This commit is contained in:
premultiply 2022-01-07 21:20:28 +01:00 • committed by GitHub
parent d8a652ffe2
commit a0ea0974a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ func (wb *HeidelbergEC) Status() (api.ChargeStatus, error) {
case 6, 7:
return api.StatusC, nil
default:
return api.StatusNone, fmt.Errorf("invalid status: %0x", sb)
return api.StatusNone, fmt.Errorf("invalid status: %d", sb)
}
}