| 159 | } |
| 160 | |
| 161 | bool PrintMonitor::GetPrintingFileInfo(GCodeFileInfo& info, const GlobalVariables *& p_customInfo) noexcept |
| 162 | { |
| 163 | if (IsPrinting()) |
| 164 | { |
| 165 | if (!printingFileParsed) |
| 166 | { |
| 167 | return false; // not ready yet |
| 168 | } |
| 169 | info = printingFileInfo; |
| 170 | p_customInfo = &customInfo; |
| 171 | } |
| 172 | else |
| 173 | { |
| 174 | info.isValid = false; |
| 175 | } |
| 176 | return true; |
| 177 | } |
| 178 | |
| 179 | void PrintMonitor::SetPrintingFileInfo(const char *_ecv_array filename, GCodeFileInfo &info) noexcept |
| 180 | { |