Fix setting of upper limit for mode ranges in cli.

This commit is contained in:
Dominic Clifton 2014-10-12 19:49:31 +01:00
parent 0589b29b84
commit 738c807e1d
1 changed files with 2 additions and 2 deletions

View File

@ -440,7 +440,7 @@ static void cliAux(char *cmdline)
if (ptr) {
val = atoi(++ptr);
val = CHANNEL_VALUE_TO_STEP(val);
if (val >= MIN_MODE_RANGE_STEP && val < MAX_MODE_RANGE_STEP) {
if (val >= MIN_MODE_RANGE_STEP && val <= MAX_MODE_RANGE_STEP) {
mac->rangeStartStep = val;
validArgumentCount++;
}
@ -449,7 +449,7 @@ static void cliAux(char *cmdline)
if (ptr) {
val = atoi(++ptr);
val = CHANNEL_VALUE_TO_STEP(val);
if (val >= MIN_MODE_RANGE_STEP && val < MAX_MODE_RANGE_STEP) {
if (val >= MIN_MODE_RANGE_STEP && val <= MAX_MODE_RANGE_STEP) {
mac->rangeEndStep = val;
validArgumentCount++;
}