Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-08-05 10:11:41 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-08-05 10:11:41 +0300
commit6aa20d4b9dd74912f1f31f6cb90ac80832414fab (patch)
treeea5c9f7f4698e4aad1470ab44a0404a809bd5e3d /src/GCodes/GCodeQueue.cpp
parente6f8e8478da515523823101e22c236e7ba47cd17 (diff)
Fix for queued M150 commands
Diffstat (limited to 'src/GCodes/GCodeQueue.cpp')
-rw-r--r--src/GCodes/GCodeQueue.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GCodes/GCodeQueue.cpp b/src/GCodes/GCodeQueue.cpp
index a87a1f9b..a7809531 100644
--- a/src/GCodes/GCodeQueue.cpp
+++ b/src/GCodes/GCodeQueue.cpp
@@ -11,6 +11,7 @@
#include "GCodes.h"
#include "GCodeBuffer/GCodeBuffer.h"
#include <Movement/Move.h>
+#include <Fans/LedStripDriver.h>
// GCodeQueue class
@@ -62,7 +63,6 @@ GCodeQueue::GCodeQueue() noexcept : freeItems(nullptr), queuedItems(nullptr)
case 140: // set bed temperature and return immediately
case 141: // set chamber temperature and return immediately
case 144: // bed standby
- case 150: // set LED colours
case 280: // set servo
case 300: // beep
case 568: // spindle or temperature control
@@ -77,6 +77,9 @@ GCodeQueue::GCodeQueue() noexcept : freeItems(nullptr), queuedItems(nullptr)
}
return true;
+ case 150: // set LED colours
+ return !LedStripDriver::MustStopMovement(gb); // if it is going to call LockMovementAndWaitForStandstill then we mustn't queue it
+
case 291:
{
bool seen = false;