Return true if all GCodes machine states on the stack are 'normal'
| 972 | |
| 973 | // Return true if all GCodes machine states on the stack are 'normal' |
| 974 | bool 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 |
| 987 | float GCodeBuffer::ConvertDistance(float distance) const noexcept |
no test coverage detected