| 1154 | } |
| 1155 | |
| 1156 | void GCodeBuffer::SetPrintFinished() noexcept |
| 1157 | { |
| 1158 | FileId printFileId = OriginalMachineState().fileId; |
| 1159 | if (printFileId != NoFileId) |
| 1160 | { |
| 1161 | for (GCodeMachineState *ms = machineState; ms != nullptr; ms = ms->GetPrevious()) |
| 1162 | { |
| 1163 | if (ms->fileId == printFileId) |
| 1164 | { |
| 1165 | // Mark machine states executing the print file as finished |
| 1166 | ms->fileFinished = true; |
| 1167 | } |
| 1168 | } |
| 1169 | reprap.GetSbcInterface().EventOccurred(); |
| 1170 | } |
| 1171 | printFilePositionAtMacroStart = noFilePosition; |
| 1172 | } |
| 1173 | |
| 1174 | // This is only called when using the SBC interface and returns if the macro file could be opened |
| 1175 | bool GCodeBuffer::RequestMacroFile(const char *filename, bool fromCode) noexcept |
no test coverage detected