asapp / one_wire

ruby One Wire binding using w1-gpio linux module.
MIT License
3 stars 2 forks source link

accounting for possible negative digit when reading thermometer value #3

Closed ElliottRoche closed 7 years ago

ElliottRoche commented 7 years ago

I've been using this gem together with PiPiper to read temperatures off of 3 separate thermometers on a Raspberry Pi. I noticed that the value method for thermometers never returned anything below 0.0, so I adjusted the regular expression to account for the possibility that a temperature reading might be below 0.0.

elmatou commented 7 years ago

Thx @ElliottRoche . I review this and merge your PR.