fix limit direction detection for old firmware releases (< V1.21)

This commit is contained in:
Jens Eden
2014-09-18 13:21:45 +00:00
parent a4373ca87b
commit cdc1d60e7c
+1 -1
View File
@@ -732,7 +732,7 @@ void omsBaseController::omsPoller()
pAxis->setIntegerParam(motorStatusDone_, 1);
pAxis->setIntegerParam(motorStatusMoving_, 0);
if (pAxis->homing) pAxis->homing = 0;
if (statusBuffer[i*STATUSSTRINGLEN + 2] == 'P')
if (statusBuffer[i*STATUSSTRINGLEN] == 'P')
pAxis->setIntegerParam(motorStatusHighLimit_, 1);
else
pAxis->setIntegerParam(motorStatusLowLimit_, 1);