Fixed servo cli to process correct arguments.

This commit is contained in:
Dean Brestel 2017-04-16 00:45:29 -07:00 committed by Dominic Clifton
parent ad6dbfee5c
commit 6b82b803cc
1 changed files with 5 additions and 5 deletions

View File

@ -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