| 1218 | } |
| 1219 | |
| 1220 | void GCodeBuffer::MacroFileClosed() noexcept |
| 1221 | { |
| 1222 | machineState->CloseFile(); |
| 1223 | macroJustStarted = false; |
| 1224 | macroFileClosed = true; |
| 1225 | #if HAS_SBC_INTERFACE |
| 1226 | if (IsBinary()) |
| 1227 | { |
| 1228 | // File position of the last code is no longer valid when we get here, reset it |
| 1229 | binaryParser.SetFilePosition(IsFileChannel() && OriginalMachineState().DoingFile() ? printFilePositionAtMacroStart : noFilePosition); |
| 1230 | } |
| 1231 | reprap.GetSbcInterface().EventOccurred(); |
| 1232 | #endif |
| 1233 | } |
| 1234 | |
| 1235 | #endif |
| 1236 |
no test coverage detected