uldaq
uldaq copied to clipboard
Issue with hid_flush_input_pipe()
Dear Team,
I am using uldaq inside docker container.
When i stop and start the container i am seeing the following error
Did any of you face this issue?
After rebooting the host machine multiple times solves this issue. this issue even comes up when the device is physically unplugged too.
Is there a way we can solve this so that we don't need manual intervention to manually reboot machine multiple times?
Thanks.
The uldaq library and related products were never tested inside a docker container, and there are no plans at this time.
The responsibility of the hid_flush_input_pipe function is to clear the input pipe buffer if the previous process crashed and there is stale data in the buffer from the previous operation. You can comment out the line that invokes hid_flush_input_pipe and rebuilt and reinstall the library. However, if your application crashes for any reason or if you use ctrl+c to terminate your application then you might have to unplug and reconnect your DAQ device before running the application again.