mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 12:23:53 +08:00
@@ -1216,7 +1216,7 @@ def main():
|
||||
operation_func = globals()[args.operation]
|
||||
operation_args,_,_,_ = inspect.getargspec(operation_func)
|
||||
if operation_args[0] == 'esp': # operation function takes an ESPROM connection object
|
||||
initial_baud = MIN(ESPROM.ESP_ROM_BAUD, args.baud) # don't sync faster than the default baud rate
|
||||
initial_baud = min(ESPROM.ESP_ROM_BAUD, args.baud) # don't sync faster than the default baud rate
|
||||
esp = ESPROM(args.port, initial_baud)
|
||||
esp.connect()
|
||||
operation_func(esp, args)
|
||||
|
||||
@@ -89,7 +89,7 @@ def flash_release(path=None, st_serial=None):
|
||||
|
||||
# done!
|
||||
status("6. Success!")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
flash_release(*sys.argv[1:])
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ def recv(panda, cnt, addr, nbus):
|
||||
def isotp_recv_subaddr(panda, addr, bus, sendaddr, subaddr):
|
||||
msg = recv(panda, 1, addr, bus)[0]
|
||||
|
||||
# TODO: handle other subaddr also communicating
|
||||
# TODO: handle other subaddr also communicating
|
||||
assert ord(msg[0]) == subaddr
|
||||
|
||||
if ord(msg[1])&0xf0 == 0x10:
|
||||
|
||||
Reference in New Issue
Block a user