Allow motor poll rates to be adjusted without an absolute encoder
This commit is contained in:
@ -4437,21 +4437,21 @@ static int DMC2280SetPar(void *pData, SConnection *pCon,
|
||||
self->bias_bits = newValue;
|
||||
return 1;
|
||||
}
|
||||
if (self->abs_encoder && strcasecmp("motorPollFast", name) == 0) {
|
||||
if (strcasecmp("motorPollFast", name) == 0) {
|
||||
/* Debug Managers only */
|
||||
if (!(self->debug && SCMatchRights(pCon, usMugger)))
|
||||
return 0;
|
||||
self->motorPollFast = newValue;
|
||||
return 1;
|
||||
}
|
||||
if (self->abs_encoder && strcasecmp("motorPollSlow", name) == 0) {
|
||||
if (strcasecmp("motorPollSlow", name) == 0) {
|
||||
/* Debug Managers only */
|
||||
if (!(self->debug && SCMatchRights(pCon, usMugger)))
|
||||
return 0;
|
||||
self->motorPollSlow = newValue;
|
||||
return 1;
|
||||
}
|
||||
if (self->abs_encoder && strcasecmp("airPollTimer", name) == 0) {
|
||||
if (strcasecmp("airPollTimer", name) == 0) {
|
||||
/* Debug Managers only */
|
||||
if (!(self->debug && SCMatchRights(pCon, usMugger)))
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user