Change baud rate for logs

This commit is contained in:
Otto Winter 2019-10-24 16:07:20 +02:00
parent fbb3b5c6e4
commit 3c996b5da5
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -3,6 +3,7 @@ from __future__ import print_function
import argparse import argparse
from datetime import datetime from datetime import datetime
import sys import sys
import time
import esptool import esptool
import serial import serial
@ -150,6 +151,11 @@ def run_esphomeflasher(argv):
print("Done! Flashing is complete!") print("Done! Flashing is complete!")
print() print()
if args.upload_baud_rate != 115200:
stub_chip._port.baudrate = 115200
time.sleep(0.05) # get rid of crap sent during baud rate change
stub_chip._port.flushInput()
show_logs(stub_chip._port) show_logs(stub_chip._port)