Fix error message (#1247)

This commit is contained in:
Sillium 2021-07-27 15:17:38 +02:00 • committed by GitHub
parent ca600d0021
commit 4c43b652d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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