MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / Reset

Method Reset

src/GCodes/GCodeInput.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63// G-code input class for wrapping around Stream-based hardware ports
64
65void StreamGCodeInput::Reset() noexcept
66{
67 while (device.available() > 0)
68 {
69 device.read();
70 }
71}
72
73char StreamGCodeInput::ReadByte() noexcept
74{

Callers 1

CheckForUrgentCommandMethod · 0.45

Calls 2

readMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected