cleaning cache completly

pull/148/head
Tim Evers 2020-05-18 22:13:26 +02:00
parent 17000da033
commit 8f242c0bd5
1 changed files with 21 additions and 0 deletions

View File

@ -400,6 +400,27 @@ int Movement::moveToCoords(double xDestScaled, double yDestScaled, double zDestS
bool emergencyStop = false;
unsigned int commandSpeed[3];
#if defined(FARMDUINO_EXP_V20)
axisX.missedStepHistory[0] = 0;
axisX.missedStepHistory[1] = 0;
axisX.missedStepHistory[2] = 0;
axisX.missedStepHistory[3] = 0;
axisX.missedStepHistory[4] = 0;
axisY.missedStepHistory[0] = 0;
axisY.missedStepHistory[1] = 0;
axisY.missedStepHistory[2] = 0;
axisY.missedStepHistory[3] = 0;
axisY.missedStepHistory[4] = 0;
axisZ.missedStepHistory[0] = 0;
axisZ.missedStepHistory[1] = 0;
axisZ.missedStepHistory[2] = 0;
axisZ.missedStepHistory[3] = 0;
axisZ.missedStepHistory[4] = 0;
#endif
// if a speed is given in the command, use that instead of the config speed
if (xMaxSpd > 0 && xMaxSpd < speedMax[0])