Fixed servo cli to process correct arguments.
This commit is contained in:
parent
ad6dbfee5c
commit
6b82b803cc
|
@ -2462,11 +2462,11 @@ static void cliServo(char *cmdline)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
servo->min = arguments[1];
|
servo->min = arguments[MIN];
|
||||||
servo->max = arguments[2];
|
servo->max = arguments[MAX];
|
||||||
servo->middle = arguments[3];
|
servo->middle = arguments[MIDDLE];
|
||||||
servo->rate = arguments[5];
|
servo->rate = arguments[RATE];
|
||||||
servo->forwardFromChannel = arguments[7];
|
servo->forwardFromChannel = arguments[FORWARD];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue