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:
parent
aea54ff156
commit
8e177b51b1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue