Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add status bit testing #1

Open
awickert opened this issue May 26, 2020 · 4 comments
Open

Add status bit testing #1

awickert opened this issue May 26, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@awickert
Copy link
Member

Line 3 of the cpp file:
//FIX! Add status bit testing!

@awickert awickert added the enhancement New feature or request label May 26, 2020
@waelnaseeb
Copy link

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

@awickert
Copy link
Member Author

awickert commented Sep 4, 2021

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!

@awickert
Copy link
Member Author

awickert commented Sep 5, 2021

Following up on the issue unrelated to the status bit: #2 just closed because it seems to be a hardware error.

@maciejs1982
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants