add baud setting to debug_console

This commit is contained in:
Firmware Batman 2017-10-15 18:13:52 -07:00
parent 435decee22
commit 5f8835ca50
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ if __name__ == "__main__":
serials = filter(lambda x: x==os.getenv("SERIAL"), serials)
pandas = list(map(lambda x: Panda(x, claim=claim), serials))
if os.getenv("BAUD") is not None:
for panda in pandas:
panda.set_uart_baud(port_number, int(os.getenv("BAUD")))
while True:
for i, panda in enumerate(pandas):
while True: