mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 16:58:05 +00:00
Support all avalon frequencies on the command line.
This commit is contained in:
parent
862c88ecbb
commit
34547596b3
@ -436,20 +436,11 @@ static bool get_options(int this_option_offset, int *baud, int *miner_count,
|
|||||||
}
|
}
|
||||||
if (colon4 && *colon4) {
|
if (colon4 && *colon4) {
|
||||||
tmp = atoi(colon4);
|
tmp = atoi(colon4);
|
||||||
switch (tmp) {
|
if (tmp < AVALON_MIN_FREQUENCY || tmp > AVALON_MAX_FREQUENCY) {
|
||||||
case 256:
|
quit(1, "Invalid avalon-options for frequency, must be %d <= frequency <= %d",
|
||||||
case 270:
|
AVALON_MIN_FREQUENCY, AVALON_MAX_FREQUENCY);
|
||||||
case 282:
|
|
||||||
case 300:
|
|
||||||
case 325:
|
|
||||||
case 350:
|
|
||||||
case 375:
|
|
||||||
*frequency = tmp;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
quit(1, "Invalid avalon-options for "
|
|
||||||
"frequency must be 256/270/282/300/325/350/375");
|
|
||||||
}
|
}
|
||||||
|
*frequency = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user