Fix ambient and setpoint switched on LCD

This commit is contained in:
Søren Rasmussen 2024-06-17 22:12:08 +02:00
parent 4e7bc505d6
commit 77531dcd1b

View file

@ -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)
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 err := p.lcd.ShowMessage(l1, device.SHOW_LINE_1|device.SHOW_BLANK_PADDING); err != nil {