diff options
Diffstat (limited to 'reset_dev.py')
-rw-r--r-- | reset_dev.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/reset_dev.py b/reset_dev.py new file mode 100644 index 0000000..5215d30 --- /dev/null +++ b/reset_dev.py @@ -0,0 +1,6 @@ +import fcntl +import os + +# USBDEVFS_RESET +fd = os.open("/dev/bus/usb/004/006", os.O_WRONLY) +fcntl.ioctl(fd, (ord('U') << (4 * 2)) | 20, 0) |