From 06e722a094728def8a66fbe578e838aa38430031 Mon Sep 17 00:00:00 2001 From: elims <46279009+theelims@users.noreply.github.com> Date: Thu, 14 Oct 2021 22:18:09 +0200 Subject: [PATCH] Fixed homing-Bug --- src/StrokeEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StrokeEngine.cpp b/src/StrokeEngine.cpp index 48745a6..bc1d340 100644 --- a/src/StrokeEngine.cpp +++ b/src/StrokeEngine.cpp @@ -213,7 +213,7 @@ bool StrokeEngine::applyNewSettingsNow() { bool StrokeEngine::startPattern() { // Only valid if state is ready - if (_state == READY || SETUPDEPTH) { + if (_state == READY || _state == SETUPDEPTH) { // Stop current move, should one be pending (moveToMax or moveToMin) if (servo->isRunning()) { @@ -268,7 +268,7 @@ bool StrokeEngine::startPattern() { void StrokeEngine::stopMotion() { // only valid when - if (_state == PATTERN || SETUPDEPTH) { + if (_state == PATTERN || _state == SETUPDEPTH) { // Stop servo motor as fast as legaly allowed servo->setAcceleration(_maxStepAcceleration); servo->applySpeedAcceleration();