Phoenix EM Eth: fix panic
This commit is contained in:
parent
fe289b1ef2
commit
4d2ba9ba0b
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ func (wb *PhoenixEMEth) Enabled() (bool, error) {
|
|||
return false, err
|
||||
}
|
||||
|
||||
return encoding.Uint16(b) > 0, nil
|
||||
return b[0] == 1, nil
|
||||
}
|
||||
|
||||
// Enable implements the api.Charger interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue