Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Fix clear() method#60

Open
jleveque wants to merge 1 commit intopython-ivi:masterfrom
jleveque:fix_clear
Open

Fix clear() method#60
jleveque wants to merge 1 commit intopython-ivi:masterfrom
jleveque:fix_clear

Conversation

@jleveque
Copy link

If clear status is pending, empty the bulk-in endpoint, rather than looping infinitely waiting for the status to change, because it won't.

These fixes were based off the USBTMC Linux kernel driver: https://github.com/torvalds/linux/blob/master/drivers/usb/class/usbtmc.c

If clear status is pending, empty the bulk-in endpoint, rather than looping
infinitely waiting for the status to change, because it won't.

These fixes were based off the USBTMC Linux kernel driver:
https://github.com/torvalds/linux/blob/master/drivers/usb/class/usbtmc.c
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant