From 746f43ccb8d71461a08c52ccf9862a9e25bef4b3 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 11 Jul 2013 16:59:42 +1000 Subject: [PATCH] Change some variable names for the sake of consistency --- site_ansto/motor_dmc2280.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index c9379044..3810b3fe 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -633,10 +633,10 @@ static int motCreep(pDMC2280Driv self, double target) { * We may still move, calculate if we will and how far */ if (self->debug) { - char text[CMDLEN]; - snprintf(text, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d", + char line[CMDLEN]; + snprintf(line, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d", self->currSteps, target_steps, offset, self->currSteps + offset); - SICSLogWrite(text, eStatus); + SICSLogWrite(line, eStatus); } /* * We don't want to handle each case separately, so fold negative into positive case @@ -689,10 +689,10 @@ static int motCreep(pDMC2280Driv self, double target) { offset = - offset; if (self->debug) { - char text[CMDLEN]; - snprintf(text, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d", + char line[CMDLEN]; + snprintf(line, CMDLEN, "CREEP: cur=%d, target=%d, offset=%d, new=%d", self->currSteps, target_steps, offset, self->currSteps + offset); - SICSLogWrite(text, eStatus); + SICSLogWrite(line, eStatus); } /* * The new absolute step target is the current step position plus