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

Method discard_inputs

tools/flash_writer.py:329–333  ·  view source on GitHub ↗
(self, timeout=1.0)

Source from the content-addressed store, hash-verified

327 self.telnet.write(buffer)
328
329 def discard_inputs(self, timeout=1.0):
330 while True:
331 ch = self.getc_raw(1, timeout=timeout)
332 if ch == b"":
333 break
334
335 def getc(self, size, timeout=1):
336 c = self.getc_raw(size, timeout)

Callers 3

cancel_autobootMethod · 0.45
install_filesMethod · 0.45
save_filesMethod · 0.45

Calls 1

getc_rawMethod · 0.95

Tested by

no test coverage detected