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

Method AllStatesNormal

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:974–984  ·  view source on GitHub ↗

Return true if all GCodes machine states on the stack are 'normal'

Source from the content-addressed store, hash-verified

972
973// Return true if all GCodes machine states on the stack are 'normal'
974bool GCodeBuffer::AllStatesNormal() const noexcept
975{
976 for (const GCodeMachineState *_ecv_null ms = machineState; ms != nullptr; ms = ms->GetPrevious())
977 {
978 if (ms->GetState() != GCodeState::normal)
979 {
980 return false;
981 }
982 }
983 return true;
984}
985
986// Convert from inches to mm if necessary
987float GCodeBuffer::ConvertDistance(float distance) const noexcept

Calls 2

GetPreviousMethod · 0.45
GetStateMethod · 0.45

Tested by

no test coverage detected