|
|
|
@ -3,6 +3,7 @@ package main
@@ -3,6 +3,7 @@ package main
|
|
|
|
|
import ( |
|
|
|
|
"fmt" |
|
|
|
|
"os" |
|
|
|
|
"strconv" |
|
|
|
|
"strings" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
@ -273,7 +274,12 @@ func setValues() {
@@ -273,7 +274,12 @@ func setValues() {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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 { |
|
|
|
|
vehicle.SetTemperature(temp,temp) |
|
|
|
|
vehicle.StartAirConditioning() |
|
|
|
|
} else { |
|
|
|
|
vehicle.StopAirConditioning() |
|
|
|
|