mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-06 00:03:42 +08:00
Merge panda subtree
old-commit-hash: c8b4633cd1941ff13fce375d557f1ca90e371cfd
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user