KEBA: fix phase switching state (#23516)
This commit is contained in:
parent
12c9321deb
commit
03ea35c029
1 changed files with 1 additions and 4 deletions
|
|
@ -395,10 +395,7 @@ func (wb *Keba) getPhases() (int, error) {
|
|||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
if binary.BigEndian.Uint32(b) == 0 {
|
||||
return 1, nil
|
||||
}
|
||||
return 3, nil
|
||||
return int(binary.BigEndian.Uint32(b)), nil
|
||||
}
|
||||
|
||||
var _ api.Diagnosis = (*Keba)(nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue