kopia lustrzana https://github.com/F5OEO/WsprryPi
Forces user to specify freq.
rodzic
3c6d629d1c
commit
e3076dfbdd
|
@ -316,6 +316,10 @@ void parse_commandline(
|
|||
cerr << "Error: cannot specify both --freq and --divisor" << endl;
|
||||
ABORT(-1);
|
||||
}
|
||||
if ((!freq_specified)&&(!div_specified)) {
|
||||
cerr << "Error: must specify either --freq or --divisor" << endl;
|
||||
ABORT(-1);
|
||||
}
|
||||
if (freq_specified&&(freq<=0)) {
|
||||
cerr << "Error: frequency must be positive" << endl;
|
||||
ABORT(-1);
|
||||
|
|
Ładowanie…
Reference in New Issue