git.haldean.org sousvide / 751d1d6
The thermocouple not being ready to read is not a fatal error. Will Haldean Brown 8 years ago
1 changed file(s) with 6 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
7474 s.DataLock.Lock()
7575 err := s.MeasureTemp()
7676 if err != nil {
77 log.Fatalf("could not read temperature: %v", err)
78 continue
77 log.Printf("could not read temperature: %v", err)
78 } else {
79 co := s.ControllerResult()
80 s.Heating = co > 0
81 s.UpdateHardware()
82 s.checkpoint()
7983 }
80
81 co := s.ControllerResult()
82 s.Heating = co > 0
83 s.UpdateHardware()
84
85 s.checkpoint()
8684 s.DataLock.Unlock()
8785 }
8886 }