Fix ambient and setpoint switched on LCD
This commit is contained in:
parent
4e7bc505d6
commit
77531dcd1b
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ func (p *LCD) update() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
l1 := fmt.Sprintf("W:%4.1f C:%4.1f %s", p.wort, p.chamber, p.state)
|
l1 := fmt.Sprintf("W:%4.1f C:%4.1f %s", p.wort, p.chamber, p.state)
|
||||||
l2 := fmt.Sprintf("S:%4.1f A:%4.1f", p.ambient, p.setpoint)
|
l2 := fmt.Sprintf("S:%4.1f A:%4.1f", p.setpoint, p.ambient)
|
||||||
|
|
||||||
if l1 != p.l1 {
|
if l1 != p.l1 {
|
||||||
if err := p.lcd.ShowMessage(l1, device.SHOW_LINE_1|device.SHOW_BLANK_PADDING); err != nil {
|
if err := p.lcd.ShowMessage(l1, device.SHOW_LINE_1|device.SHOW_BLANK_PADDING); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue