mirror of
https://github.com/esphome/esphome-flasher.git
synced 2024-11-21 11:45:23 +01:00
Change baud rate for logs
This commit is contained in:
parent
fbb3b5c6e4
commit
3c996b5da5
@ -3,6 +3,7 @@ from __future__ import print_function
|
||||
import argparse
|
||||
from datetime import datetime
|
||||
import sys
|
||||
import time
|
||||
|
||||
import esptool
|
||||
import serial
|
||||
@ -150,6 +151,11 @@ def run_esphomeflasher(argv):
|
||||
print("Done! Flashing is complete!")
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user