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

ADCPi.read_voltage() freezes without raising an exception #2

Closed
jkall opened this issue Dec 1, 2014 · 0 comments
Closed

ADCPi.read_voltage() freezes without raising an exception #2

jkall opened this issue Dec 1, 2014 · 0 comments

Comments

@jkall
Copy link

jkall commented Dec 1, 2014

I have a use case with a couple of different scripts logging and watching ADCPi channels. If one script calls ADCPi.read_voltage() before the first was finished, both scripts become totally unresponsive.

This situation with several simultaneous calls for ADCPi.read_voltage() can easily be triggered by starting a few instances of the demo script:
python demo-readvoltage.py &
When I start the 4th or 5th test script they all freeze without raising any exception.

It would be nice if the ADCPi.read_voltage() could handle this situation by raising an exception when it fails. Perhaps there could be a timeout if for the underlying i2c reading?

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