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

Method flushOutput

src/ext/makerbot_pyserial/serialjava.py:181–185  ·  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

179 self._instream.skip(self._instream.available())
180
181 def flushOutput(self):
182 """Clear output buffer, aborting the current output and
183 discarding all that is in the buffer."""
184 if not self.sPort: raise portNotOpenError
185 self._outstream.flush()
186
187 def sendBreak(self, duration=0.25):
188 """Send break condition. Timed, returns to idle state after given duration."""

Callers 1

serialjava.pyFile · 0.45

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected