Retrieve the result and error message if it is worse than the one we already have
| 301 | |
| 302 | // Retrieve the result and error message if it is worse than the one we already have |
| 303 | void GCodeMachineState::RetrieveStateMachineResult(const GCodeBuffer& gb, const StringRef& reply, GCodeResult& rslt) const noexcept |
| 304 | { |
| 305 | if (stateMachineResult >= rslt) |
| 306 | { |
| 307 | rslt = stateMachineResult; |
| 308 | if (!errorMessage.IsNull()) |
| 309 | { |
| 310 | errorMessage.GetMessage(reply, &gb); |
| 311 | } |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | GCodeMachineState *GCodeMachineState::Pop() const noexcept |
| 316 | { |
no test coverage detected