Commit 744435f0 authored by Oleg Nikulin's avatar Oleg Nikulin

Сообщение если первая попытка открыть serial порт была неудачной

parent 6a0e69c6
......@@ -177,8 +177,10 @@ if __name__ == "__main__":
print('Incorrect number of control groups in config. There should be 3 control groups.')
exit()
serial_port = open_serial(port, baudrate)
serial_port = open_serial(port, baudrate)
if serial_port is None:
print(f'Failed to open {config["device"]} serial port. Trying again...')
try:
while True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment