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
| 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 |
| 1161 | bool 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 | |
| 1173 | bool GCodes::IsReallyPrintingOrResuming() const noexcept |
| 1174 | { |
no test coverage detected