Nick Andrew 0a7b730e23 Support DS18S20 and fix negative temp handling
The DS18S20 has only 1 fractional bit whereas DS18B20 has 4, and their
temperature register alignment differs. Check the family code to choose
the correct multiplier for both devices.

Closes #610

Negative temperatures (less than 0°C) are returned as a sign-extended
two's complement number. Subtract 0x10000 to recover the proper
negative value.

Signed-off-by: Nick Andrew <nick@nick-andrew.net>
2015-11-16 23:32:20 +11:00
..
2015-06-25 01:35:50 +02:00
2015-01-21 18:43:57 +08:00
2015-04-20 19:43:24 +08:00
2015-03-07 15:04:42 +01:00
2015-01-26 14:36:39 +03:00
2015-04-22 13:16:37 +08:00