test_apps: make it possible to run gdb_loadable_elf app locally
This commit is contained in:
parent
17d60faf17
commit
5e95bc1d21
|
@ -12,7 +12,7 @@ import ttfw_idf
|
||||||
|
|
||||||
class SerialThread(object):
|
class SerialThread(object):
|
||||||
def run(self, log_path, exit_event):
|
def run(self, log_path, exit_event):
|
||||||
with serial.Serial('/dev/ttyUSB1', 115200) as ser, open(log_path, 'wb') as f:
|
with serial.Serial(os.getenv('ESPPORT', '/dev/ttyUSB1'), 115200) as ser, open(log_path, 'wb') as f:
|
||||||
while True:
|
while True:
|
||||||
f.write(ser.read(ser.in_waiting))
|
f.write(ser.read(ser.in_waiting))
|
||||||
if exit_event.is_set():
|
if exit_event.is_set():
|
||||||
|
|
Loading…
Reference in a new issue