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

Method ShouldQueueG10

src/GCodes/GCodeQueue.cpp:27–32  ·  view source on GitHub ↗

Return true if the GCode in the GCodeBuffer should be queued Caller has already checked that the command does not contain an expression and involves modifying tool temperatures or spindle speed static*/

Source from the content-addressed store, hash-verified

25// Return true if the GCode in the GCodeBuffer should be queued
26// Caller has already checked that the command does not contain an expression and involves modifying tool temperatures or spindle speed
27/*static*/ bool GCodeQueue::ShouldQueueG10(GCodeBuffer &gb, ParameterLettersBitmap allAxisLetters) noexcept
28{
29 return reprap.GetMove().GetScheduledMoves() != reprap.GetMove().GetCompletedMoves()
30 && !gb.AllParameters().Intersects(allAxisLetters) // only queue it if it does not modify tool offsets
31 && gb.DataLength() <= BufferSizePerQueueItem; // only queue it if it is short enough to fit in a queue item
32}
33
34// Return true if the MCode in the GCodeBuffer should be queued. Caller has already checked that the command does not contain an expression.
35/*static*/ bool GCodeQueue::ShouldQueueMCode(GCodeBuffer &gb) THROWS(GCodeException)

Callers

nothing calls this directly

Calls 4

GetScheduledMovesMethod · 0.45
GetCompletedMovesMethod · 0.45
AllParametersMethod · 0.45
DataLengthMethod · 0.45

Tested by

no test coverage detected