(self, prompt_text)
| 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: |