kopia lustrzana https://github.com/micropython/micropython
tools/pyboard.py: fix infinite loop connection bug and ruff.
Signed-off-by: Chris <cryptophoto@gmail.com>pull/13253/head
rodzic
b16cf5c772
commit
0bd0bd4f10
|
@ -272,7 +272,7 @@ class Pyboard:
|
|||
password="python",
|
||||
wait=0,
|
||||
exclusive=True,
|
||||
hard_reset=False
|
||||
hard_reset=False,
|
||||
):
|
||||
self.in_raw_repl = False
|
||||
self.use_raw_paste = True
|
||||
|
@ -345,7 +345,7 @@ class Pyboard:
|
|||
if min_num_bytes > 0:
|
||||
data = self.serial.read(min_num_bytes)
|
||||
else:
|
||||
data = b''
|
||||
data = b""
|
||||
if data_consumer:
|
||||
data_consumer(data)
|
||||
timeout_count = 0
|
||||
|
@ -879,7 +879,7 @@ def main():
|
|||
args.password,
|
||||
args.wait,
|
||||
args.exclusive,
|
||||
hard_reset=args.hard_reset
|
||||
hard_reset=args.hard_reset,
|
||||
)
|
||||
except PyboardError as er:
|
||||
print(er)
|
||||
|
|
Ładowanie…
Reference in New Issue