diff --git a/site_ansto/motor_dmc2280.c b/site_ansto/motor_dmc2280.c index 8990e787..20722205 100644 --- a/site_ansto/motor_dmc2280.c +++ b/site_ansto/motor_dmc2280.c @@ -917,8 +917,9 @@ static int DMC2280Send(pDMC2280Driv self, char *command) { */ static int DMC2280SendReceive(pDMC2280Driv self, char *cmd, char* reply) { int status; + int cmd_len = CMDLEN; - status = AsyncUnitTransact(self->asyncUnit, cmd, strlen(cmd), reply, CMDLEN); + status = AsyncUnitTransact(self->asyncUnit, cmd, strlen(cmd), reply, &cmd_len); if (status != 1) { if (self->debug) @@ -1390,7 +1391,7 @@ static char* state_name(StateFunc func) { return ""; } -void str_n_cat(char* s1, int len, const char* s2) { +static void str_n_cat(char* s1, int len, const char* s2) { int i = strlen(s1); const char* p = s2; while (i < len - 3 && *p) {