MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / GetPrintingFileInfo

Method GetPrintingFileInfo

src/PrintMonitor/PrintMonitor.cpp:161–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool 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
179void PrintMonitor::SetPrintingFileInfo(const char *_ecv_array filename, GCodeFileInfo &info) noexcept
180{

Callers 1

GetFileInfoResponseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected