From 8efade3fcfbe68634c54536f75cb80c081a76229 Mon Sep 17 00:00:00 2001 From: Jochen Kiemes Date: Thu, 31 Oct 2024 22:40:00 +0100 Subject: [PATCH] add brackets around condition in FastAccelStepper::fill_queue --- src/FastAccelStepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FastAccelStepper.cpp b/src/FastAccelStepper.cpp index 4b8d772..60a882c 100644 --- a/src/FastAccelStepper.cpp +++ b/src/FastAccelStepper.cpp @@ -383,7 +383,7 @@ void FastAccelStepper::fill_queue() { uint32_t ticksPrepared = q->ticksInQueue(); while (!isQueueFull() && ((ticksPrepared < _forward_planning_in_ticks) || - q->queueEntries() <= 1) && + (q->queueEntries() <= 1)) && _rg.isRampGeneratorActive()) { #if (TEST_MEASURE_ISR_SINGLE_FILL == 1) // For run time measurement