r1541 | dcl | 2007-02-22 16:33:26 +1100 (Thu, 22 Feb 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-02-22 16:33:26 +11:00
parent b9da38d603
commit 2a42067746

View File

@@ -241,8 +241,9 @@ static int checkPosition(pMotor self, SConnection *pCon)
SCWrite(pCon,pBueffel, eWarning);
return HWFault;
}
snprintf(pBueffel,131,"WARNING: %s off position by %f",
self->name, absf(fHard - self->fTarget));
snprintf(pBueffel,131,"WARNING: %s off position by %f%s",
self->name, absf(fHard - self->fTarget),
self->fTarget > fHard ? "-" : "");
SCWrite(pCon,pBueffel, eWarning);
status = statusRunTo(self,pCon);
return status;