mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
faster timeout for initial connect
This commit is contained in:
@@ -297,9 +297,9 @@ class Panda:
|
||||
bootstub = None
|
||||
try:
|
||||
handle = PandaSpiHandle()
|
||||
bootstub = Panda.flasher_present(handle)
|
||||
dat = handle.controlRead(Panda.REQUEST_IN, 0xc3, 0, 0, 12)
|
||||
dat = handle.controlRead(Panda.REQUEST_IN, 0xc3, 0, 0, 12, timeout=100)
|
||||
spi_serial = binascii.hexlify(dat).decode()
|
||||
bootstub = Panda.flasher_present(handle)
|
||||
except PandaSpiException:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user