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

Method flushOutput

src/ext/makerbot_pyserial/serialcli.py:187–191  ·  view source on GitHub ↗

Clear output buffer, aborting the current output and discarding all that is in the buffer.

(self)

Source from the content-addressed store, hash-verified

185 self._port_handle.DiscardInBuffer()
186
187 def flushOutput(self):
188 """Clear output buffer, aborting the current output and
189 discarding all that is in the buffer."""
190 if not self._port_handle: raise portNotOpenError
191 self._port_handle.DiscardOutBuffer()
192
193 def sendBreak(self, duration=0.25):
194 """Send break condition. Timed, returns to idle state after given duration."""

Callers 1

openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected