From 2a42067746a783688e4a8edeacac4d6518efce2d Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 22 Feb 2007 16:33:26 +1100 Subject: [PATCH] cosmetic r1541 | dcl | 2007-02-22 16:33:26 +1100 (Thu, 22 Feb 2007) | 2 lines --- motor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/motor.c b/motor.c index 5f20f8f5..e427f41e 100644 --- a/motor.c +++ b/motor.c @@ -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;