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

Issues caused by owb_rmt_driver_info going out of scope #18

Closed
abraha2d opened this issue Oct 19, 2020 · 2 comments
Closed

Issues caused by owb_rmt_driver_info going out of scope #18

abraha2d opened this issue Oct 19, 2020 · 2 comments
Assignees

Comments

@abraha2d
Copy link

The documentation for owb_rmt_initialize does not indicate that the owb_rmt_driver_info structure needs to be kept around, since the OneWireBus is actually a member of the info structure.

If the info structure goes out of scope, then things break down, and it's not apparent why. (I just spent a few hours tracking down an issue caused by this.)

@abraha2d abraha2d changed the title Documentation on owb_rmt_initialize Issues caused by owb_rmt_driver_info going out of scope Oct 19, 2020
@DavidAntliff
Copy link
Owner

@abraha2d I'm sorry you spent time tracking this down when better docs would have helped you avoid this. Thank you for reporting it. I will update the docs in due course and hopefully prevent anyone else having the same experience.

@abraha2d
Copy link
Author

No worries, it was a good learning experience. Figured this will help others from encountering the same issue.

Thank you for the work with this one-wire driver, it's been very useful to me.

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

2 participants