Fix error message (#1247)
This commit is contained in:
parent
ca600d0021
commit
4c43b652d4
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ func (c *GoE) Enable(enable bool) error {
|
|||
|
||||
status, err := c.apiUpdate(fmt.Sprintf("alw=%d", b))
|
||||
if err == nil && isValid(status) && status.Alw != b {
|
||||
return fmt.Errorf("alw update failed: %d", status.Amp)
|
||||
return fmt.Errorf("alw update failed: %d", status.Alw)
|
||||
}
|
||||
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue