git.haldean.org sousvide / c8fb9f4
Fix small bug around buffering of therm output. Will Haldean Brown 8 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7777 fmt.Sprintf("malformed line from 1-wire interface: %s", line))
7878 }
7979 if data[1] != "YES" {
80 // read the next line to flush the buffer. when we get a NO status
81 // there's still a line with the last temperature it read
82 s.Gpio.ThermReader.ReadString('\n')
8083 return errors.New(fmt.Sprintf(
8184 "thermocouple did not return 'YES' status, got %s", line))
8285 }