Skip to content

Commit

Permalink
Fixed homing-Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
theelims authored Oct 14, 2021
1 parent 6d8b806 commit 06e722a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StrokeEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 06e722a

Please sign in to comment.