Actually use climate setting

This commit is contained in:
2021-07-13 15:13:14 -04:00
parent 5d4789d98e
commit 0a522be1d0

View File

@ -3,6 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"os" "os"
"strconv"
"strings" "strings"
"time" "time"
@ -273,7 +274,12 @@ func setValues() {
} }
func enableClimate(i int) { func enableClimate(i int) {
temp, err := strconv.ParseFloat(tempSetting.Text(), 64)
if err != nil {
showDialogue("Unable to parse temp setting\n%+v", err)
}
if i == 0 { if i == 0 {
vehicle.SetTemperature(temp,temp)
vehicle.StartAirConditioning() vehicle.StartAirConditioning()
} else { } else {
vehicle.StopAirConditioning() vehicle.StopAirConditioning()