Skip to content

Commit

Permalink
Merge pull request #38 from antoinevg/antoinevg/fix-greatfet-327
Browse files Browse the repository at this point in the history
comms: don't try to claim usb interface on Windows
  • Loading branch information
antoinevg authored May 17, 2024
2 parents 26e1059 + 042ac8a commit 5df4eb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions host/pygreat/comms_backends/usb.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def _hold_libgreat_interface(self, timeout=1000):
# If we have EBUSY (linux) or EACCES (macos), or None (windows), try again.
if e.errno in (errno.EBUSY, errno.EACCES, None):
pass
# If we have None (windows), just return
elif e.errno in (None, ):
return
else:
raise

Expand Down

0 comments on commit 5df4eb5

Please sign in to comment.