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

Method CheckForDeferredPause

src/GCodes/GCodes.cpp:1149–1156  ·  view source on GitHub ↗

Check if a pause is pending, action it if so

Source from the content-addressed store, hash-verified

1147
1148// Check if a pause is pending, action it if so
1149void GCodes::CheckForDeferredPause(GCodeBuffer& gb) noexcept
1150{
1151 if (gb.IsFileChannel() && !gb.IsDoingFileMacro(true) && deferredPauseCommandPending != nullptr && !doingToolChange)
1152 {
1153 gb.PutAndDecode(deferredPauseCommandPending);
1154 deferredPauseCommandPending = nullptr;
1155 }
1156}
1157
1158// Return true if we are printing from SD card and not pausing, paused or resuming
1159// Called by the filament monitor code to see whether we need to activate the filament monitors, and from other places

Callers

nothing calls this directly

Calls 1

PutAndDecodeMethod · 0.45

Tested by

no test coverage detected