-
Notifications
You must be signed in to change notification settings - Fork 542
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
Sketch lockup when using constructor with the parameters and HX711 not connected #76
Comments
This absolutely solves the stuck in the while loop I was having when the scales were disconnected or failed. |
Dear Peter, while working on #125 in the aftermath of #123, we just added your wait-for-readyness-with-retry implementation to our spring-cleaning branch by 87727e0. The corresponding HX711_retry_example.ino uses the new With kind regards, |
I think I am having the same problem using the most recent version of code. If I power up the board without the HX711 connected it locks up.
I can't work out how to fix this issue, it would be good if the |
When using the constructor to initialize the class with parameter passing, the system locks up when my sensor board is not connected. I found out that this is caused by the 'read' function that is called through the set_gain/begin calls. The while loop in that function stays there forever, thus hanging the system since the system is not yet through it's setup.
Just a proposed improvement, that will make the read more robust against 'hanging' in a loop;
byte retry = 0;
The text was updated successfully, but these errors were encountered: