Set the state to indicate a file is being processed
| 185 | |
| 186 | // Set the state to indicate a file is being processed |
| 187 | void GCodeMachineState::SetFileExecuting() noexcept |
| 188 | { |
| 189 | #if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES |
| 190 | if (!fileState.IsLive()) |
| 191 | #endif |
| 192 | { |
| 193 | fileId = (GetPrevious() != nullptr ? GetPrevious()->fileId : NoFileId) + 1; |
| 194 | if (fileId == NoFileId) |
| 195 | { |
| 196 | // In case the ID overlapped increase it once more (should never happen) |
| 197 | fileId++; |
| 198 | } |
| 199 | fileFinished = false; |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | #endif |
| 204 |