def convertTemp(raw):
comma = raw[0] >> 7
if (raw[1] >> 7) == 1:
return - ((raw[1] ^ 0xff) + 1) + comma * 0.5
else:
return raw[1] + comma * 0.5
Josias Florian Klaus (d366afbe) at 06 Jan 17:46
Implimented fix for negative temperatures
Josias Florian Klaus (dfc319e8) at 06 Jan 16:23
Initial commit