Skip to content

Add timeout for reading#9

Open
GeoffreyFrogeye wants to merge 1 commit intopatrislav1:masterfrom
GeoffreyFrogeye:push-vpsxtltlzszr
Open

Add timeout for reading#9
GeoffreyFrogeye wants to merge 1 commit intopatrislav1:masterfrom
GeoffreyFrogeye:push-vpsxtltlzszr

Conversation

@GeoffreyFrogeye
Copy link

This permits catching more errors, notably when putting the computer to sleep: no data can be read anymore.
Adding a timeout, in addition to the existing error handling, allows recovering from that.

Put 60 seconds to be conservative, maybe there are other devices out there who report less often than the every 2-3 seconds that I have with my device.

This permits catching more errors, notably when putting the computer to
sleep: no data can be read anymore.
Adding a timeout, in addition to the existing error handling, 
allows recovering from that.
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.

1 participant