MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / flushInput

Method flushInput

src/ext/makerbot_pyserial/serialcli.py:182–185  ·  view source on GitHub ↗

Clear input buffer, discarding all that is in the buffer.

(self)

Source from the content-addressed store, hash-verified

180 return len(data)
181
182 def flushInput(self):
183 """Clear input buffer, discarding all that is in the buffer."""
184 if not self._port_handle: raise portNotOpenError
185 self._port_handle.DiscardInBuffer()
186
187 def flushOutput(self):
188 """Clear output buffer, aborting the current output and

Callers 1

openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected