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

checkReset() is causing a indefinite loop which requires a hard reset. #87

Open
RGarrett93 opened this issue Feb 11, 2020 · 0 comments
Open

Comments

@RGarrett93
Copy link

RGarrett93 commented Feb 11, 2020

Waiting on a logic analyser to arrive but after some/ random duration of poll(), the checkReset() is freezing/ causing the program to go in to indefinite loop until a hard reset is occurred.
Currently using an Arduino nano with anI2C LCD display.

My program consists of changing the DS2401 serial number, when I change a certain state.

I've currently created a new poll() function separate to the original where I've commented out the checkReset(), this has temporary sorted the issue but the 1-wire master does not always pick up the new serial number when the hub is attached again.

Do you have any suggestions for why the checkReset() is hanging?
Once I receive my logic analyser; I'm hoping it should give me an indication of what the Master is outputting.
I've tried to run the diagnosis but sadly since the nano clock is 16Mhz its not compatible, I haven't tried running the nano at 20Mhz yet.

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

No branches or pull requests

1 participant