-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
twi_status clockCount wrong usage ?? #4063
Comments
@miky2k When you opened the issue, you were presented with an issue template requesting specific information. You have completely ignored that. Please edit your post and add the required info. |
clockCount is initialized , tested , but never changed (so why test it?), twi_status is helpful to unlock i2c after random reset if stolen by slave for what i understand. |
maybe devs would be more willing to looking into this if you'd provide more reference like e.g. filename and line number ? |
After investigating the universe, I managed to descipher that:
The question that remains is whether clock_count should start at 20 like now (the PR doesn't change this value), or at 10 as proposed here. |
while (SDA_READ()==0 && clockCount>0){
should be
while (SDA_READ()==0 && clockCount-->0){
i feel that clockCount should be 10 not 20 (eight bit + ack + stop)
The text was updated successfully, but these errors were encountered: