mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
Implement WebUSB and upgrade WinUSB to 2.0 (#107)
* Implement webusb and winusb 2.0 specs * Add missing constants * Refactor string system, add support for USB2.1 * Uncapitalize the panda * Add USB 2.0 extension descriptor and device qualifier getter * Sleep during reconnect process to be more reliable * Disable compiler optimizations because they break SPI coms
This commit is contained in:
@@ -155,6 +155,7 @@ class Panda(object):
|
||||
if self._serial is None or this_serial == self._serial:
|
||||
self._serial = this_serial
|
||||
print("opening device", self._serial, hex(device.getProductID()))
|
||||
time.sleep(1)
|
||||
self.bootstub = device.getProductID() == 0xddee
|
||||
self.legacy = (device.getbcdDevice() != 0x2300)
|
||||
self._handle = device.open()
|
||||
|
||||
Reference in New Issue
Block a user