Skip to content

Commit 15d50d7

Browse files
committed
Fix 'mbed sterm --echo off' behavior
1 parent 90a548b commit 15d50d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed_terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, port, baudrate=9600, echo=True, timeout=10):
3131
self.port = port
3232
self.baudrate = int(baudrate)
3333
self.timeout = int(timeout)
34-
self.echo = bool(echo)
34+
self.echo = False if str(echo).lower() == 'off' else True
3535

3636
try:
3737
from serial import Serial, SerialException

0 commit comments

Comments
 (0)