CelliesProjects / aquacontrol32

5 channel aquarium LED controller with web interface for ESP32 boards. Supports DS18B20, SSD1306, ILI9341, XPT2046 and SmartConfig. Arduino IDE.
MIT License
62 stars 20 forks source link

Use CRC to check if value is valid temperature. #1

Closed CelliesProjects closed 7 years ago

CelliesProjects commented 7 years ago

Sometimes the Dallas sensors will return an invalid value. Check the value with a CRC. See https://github.com/PaulStoffregen/OneWire/blob/master/examples/DS18x20_Temperature/DS18x20_Temperature.pde#L38-L42 or https://github.com/PaulStoffregen/OneWire/blob/master/examples/DS18x20_Temperature/DS18x20_Temperature.pde#L82-L84

CelliesProjects commented 7 years ago

Should be fixed with 28acde2d37592b3dd7b950a3146d7be17ec23c20 Closing for now.