specify axis in stall detection error

pull/134/head
gabrielburnworth 2020-02-18 14:23:20 -08:00
parent 58806c00f6
commit 1e96293957
2 changed files with 6 additions and 3 deletions

View File

@ -21,6 +21,9 @@ enum ErrorListEnum
ERR_INVALID_COMMAND = 14,
ERR_PARAMS_NOT_OK = 15,
ERR_STALL_DETECTED_X = 31,
ERR_STALL_DETECTED_Y = 32,
ERR_STALL_DETECTED_Z = 33,
};
class CurrentState

View File

@ -587,7 +587,7 @@ int Movement::moveToCoords(double xDestScaled, double yDestScaled, double zDestS
}
else
{
error = ERR_STALL_DETECTED;
error = ERR_STALL_DETECTED_X;
}
}
@ -605,7 +605,7 @@ int Movement::moveToCoords(double xDestScaled, double yDestScaled, double zDestS
}
else
{
error = ERR_STALL_DETECTED;
error = ERR_STALL_DETECTED_Y;
}
}
@ -624,7 +624,7 @@ int Movement::moveToCoords(double xDestScaled, double yDestScaled, double zDestS
}
else
{
error = ERR_STALL_DETECTED;
error = ERR_STALL_DETECTED_Z;
}
}