Make sure logs after upload works when using explicit OTA. (#42)

This commit is contained in:
Johan Bloemberg 2018-06-08 10:41:01 +02:00 committed by Otto Winter
parent e063f2aaea
commit a04438e924

View File

@ -222,7 +222,8 @@ def upload_program(config, args, port):
def show_logs(config, args, port, escape=False):
if port != 'OTA':
serial_port = port.startswith('/') or port.startswith('COM')
if port != 'OTA' and serial_port:
run_miniterm(config, port, escape=escape)
return 0
return mqtt.show_logs(config, args.topic, args.username, args.password, args.client_id,