diff --git a/motorApp/MclennanSrc/devPM304.c b/motorApp/MclennanSrc/devPM304.c index e8880b8d..7ac8f425 100644 --- a/motorApp/MclennanSrc/devPM304.c +++ b/motorApp/MclennanSrc/devPM304.c @@ -99,6 +99,7 @@ static int PM304_table[] = { IMMEDIATE, /* SET_VELOCITY */ IMMEDIATE, /* SET_ACCEL */ IMMEDIATE, /* GO */ + IMMEDIATE, /* SET_ENC_RATIO */ INFO, /* GET_INFO */ MOVE_TERM, /* STOP_AXIS */ VELOCITY, /* JOG */ @@ -266,6 +267,12 @@ STATIC long PM304_build_trans(motor_cmnd command, double *parms, struct motorRec * does nothing */ break; + case SET_ENC_RATIO: + /* + * The PM304 does not have the concept of encoder ratio, ignore this + * command + */ + break; case GET_INFO: /* These commands are not actually done by sending a message, but rather they will indirectly cause the driver to read the status