mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 09:43:51 +08:00
flashing speeeed (#2264)
* less sectors * why are we taking baby steps * revert * cleanup --------- Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
@@ -431,7 +431,7 @@ class Panda:
|
||||
handle.controlWrite(Panda.REQUEST_IN, 0xb2, i, 0, b'')
|
||||
|
||||
# flash over EP2
|
||||
STEP = 0x10
|
||||
STEP = 0x200
|
||||
logger.info("flash: flashing")
|
||||
for i in range(0, len(code), STEP):
|
||||
handle.bulkWrite(2, code[i:i + STEP])
|
||||
|
||||
Reference in New Issue
Block a user