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

Added a timeout feature #2

Merged
merged 1 commit into from
May 25, 2012
Merged

Added a timeout feature #2

merged 1 commit into from
May 25, 2012

Conversation

spirilis
Copy link

@spirilis spirilis commented May 3, 2012

Hi there- I'm using your LSM303DLM breakout board and I really like it, it's a cornerstone to a gadget I'm building. However I noticed the library busy-waits in a while(Wire.available() < 6) loop which can be a show-stopper if the device gets disconnected or whatnot, so I made these changes.

is_timeout() is a status checker for after running read(), setTimeout() sets the timeout in milliseconds and getTimeout() retrieves the current timeout setting.

@kevin-pololu kevin-pololu merged commit de44731 into pololu:master May 25, 2012
@kevin-pololu
Copy link
Member

Thanks for adding this feature. I merged it in with a few minor changes.

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

Successfully merging this pull request may close these issues.

2 participants