MCPcopy Create free account
hub / github.com/apache/nuttx / read_output

Method read_output

tools/flash_writer.py:508–517  ·  view source on GitHub ↗
(self, prompt_text)

Source from the content-addressed store, hash-verified

506 print(rx.decode(errors="replace"), end="")
507
508 def read_output(self, prompt_text):
509 output = []
510 while True:
511 rx = self.serial.readline()
512 if prompt_text.encode() in rx:
513 time.sleep(0.1)
514 break
515 if rx != "":
516 output.append(rx.decode(errors="ignore").rstrip())
517 return output
518
519 def install_files(self, files, command):
520 if ConfigArgs.XMODEM_BAUD:

Callers

nothing calls this directly

Calls 2

readlineMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected