summaryrefslogtreecommitdiff
path: root/reset_dev.py
blob: 5215d30975cef00607742351f6d241d9360c4774 (plain)
1
2
3
4
5
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)