mirror of
https://github.com/esphome/esphome-flasher.git
synced 2024-11-25 12:25:47 +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
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user