intrepidcs / python_ics

Library for interfacing with Intrepid devices in Python
MIT License
61 stars 29 forks source link

Fixed an issue when get_messages() timeout was 0 we no messages were … #80

Closed pierreluctg closed 4 years ago

pierreluctg commented 4 years ago

…returned.

-Related to Issue #69.

Signed-off-by: David Rebbe drebbe@intrepidcs.com (cherry picked from commit bea054f34d1be3bc107ac11817c3139f15b2b063)

pierreluctg commented 4 years ago

The 4.4 release did fix the crash issue, however without this change timeout=0 will never return any message witch is a bug.

I causes a situation when the use of the API will falsely think that there are no messages (or errors) to be read from the buffer.