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:
Chris Vickery
2018-04-11 10:08:56 -07:00
committed by GitHub
parent 52b2ac0740
commit 6dbd8c972b
4 changed files with 238 additions and 51 deletions

View File

@@ -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()