mirror of
https://github.com/micropython/micropython.git
synced 2025-07-20 20:41:10 +02:00
tools/pyboard.py: Align execpty prefix.
This aligns the prefix string in L285 to that in L284 though the two strings have equal length. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
committed by
Damien George
parent
a8d50fb653
commit
5f55f8d01a
@@ -282,7 +282,7 @@ class Pyboard:
|
||||
if device.startswith("exec:"):
|
||||
self.serial = ProcessToSerial(device[len("exec:") :])
|
||||
elif device.startswith("execpty:"):
|
||||
self.serial = ProcessPtyToTerminal(device[len("qemupty:") :])
|
||||
self.serial = ProcessPtyToTerminal(device[len("execpty:") :])
|
||||
elif device and device[0].isdigit() and device[-1].isdigit() and device.count(".") == 3:
|
||||
# device looks like an IP address
|
||||
self.serial = TelnetToSerial(device, user, password, read_timeout=10)
|
||||
|
Reference in New Issue
Block a user