Return true if we are reading GCode commands from a file or macro
| 204 | |
| 205 | // Return true if we are reading GCode commands from a file or macro |
| 206 | bool GCodeMachineState::DoingFile() const noexcept |
| 207 | { |
| 208 | #if HAS_SBC_INTERFACE |
| 209 | if (reprap.UsingSbcInterface() && fileId != NoFileId) |
| 210 | { |
| 211 | return true; |
| 212 | } |
| 213 | #endif |
| 214 | #if HAS_MASS_STORAGE || HAS_EMBEDDED_FILES |
| 215 | return fileState.IsLive(); |
| 216 | #else |
| 217 | return false; |
| 218 | #endif |
| 219 | } |
| 220 | |
| 221 | // Close the currently executing file |
| 222 | void GCodeMachineState::CloseFile() noexcept |
no test coverage detected