1
0
Fork 0
mirror of https://github.com/shouptech/tempgopher.git synced 2026-02-03 16:49:42 +00:00

Fix a segmentation fault

This commit is contained in:
Emma 2018-10-01 20:34:07 -06:00
parent aea54ff156
commit 8e177b51b1

View file

@ -140,8 +140,8 @@ func RunThermostat(path string, sc chan<- State, wg *sync.WaitGroup) {
if err != nil { if err != nil {
log.Panicln(err) log.Panicln(err)
} }
defer TurnOffSensors(*config)
defer rpio.Close() defer rpio.Close()
defer TurnOffSensors(*config)
// Track if thermostats should run // Track if thermostats should run
run := true run := true