Open awickert opened 4 years ago
Thank you so much guys for your work. I've just come across your library while working on a project that includes T9602 and Controllino. The library happens to work very well although I'm still working out the stuck temperature readings issue.
Cheers
Hi @waelnaseeb. I haven't encountered "the stuck temperature readings". Could you open a new issue with the required information to reproduce the problem?
Thanks!
Following up on the issue unrelated to the status bit: #2 just closed because it seems to be a hardware error.
The issue is that when temperature conversion is performed, it is done on bytes that don't exist. Change line:
Temp = (float)((unsigned((data[2] * 64)) + unsigned((data[3] >> 2 ))) / 16384.0) * 165.0 - 40.0; //Convert Temp
to:
Temp = (float)((unsigned((data[0] * 64)) + unsigned((data[1] >> 2 ))) / 16384.0) * 165.0 - 40.0; //Convert Temp
Line 3 of the cpp file:
//FIX! Add status bit testing!