BrewPi / firmware

Brewing temperature control firmware for the BrewPi Spark (Particle Photon inside)
http://www.brewpi.com
GNU Affero General Public License v3.0
97 stars 55 forks source link

stringToTemp should result in INVALID_TEMP for null or None #16

Closed elcojacobs closed 9 years ago

elcojacobs commented 9 years ago

When the script sends 'null' or 'None' to the controller, the temperature is set to 0.0, it should be set to INVALID_TEMP instead (which is shown as --.- on the screen.

elcojacobs commented 9 years ago

Done in 0.2.9. null is only accepted when converting to a temperature and results in DISABLED_TEMP. None has not been implemented, the script has to make sure it sends valid json strings and not Python types. true and false have been added too.