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

Method IsReallyPrinting

src/GCodes/GCodes.cpp:1161–1171  ·  view source on GitHub ↗

Return true if we are printing from SD card and not pausing, paused or resuming Called by the filament monitor code to see whether we need to activate the filament monitors, and from other places TODO make this independent of PrintMonitor

Source from the content-addressed store, hash-verified

1159// Called by the filament monitor code to see whether we need to activate the filament monitors, and from other places
1160// TODO make this independent of PrintMonitor
1161bool GCodes::IsReallyPrinting() const noexcept
1162{
1163#if SUPPORT_REMOTE_COMMANDS
1164 if (CanInterface::InExpansionMode())
1165 {
1166 return isRemotePrinting;
1167 }
1168#endif
1169
1170 return reprap.GetPrintMonitor().IsPrinting() && pauseState == PauseState::notPaused;
1171}
1172
1173bool GCodes::IsReallyPrintingOrResuming() const noexcept
1174{

Callers 3

MenuItem.cppFile · 0.80
CanClockLoopFunction · 0.80
SpinMethod · 0.80

Calls 1

IsPrintingMethod · 0.80

Tested by

no test coverage detected