vga gain must be a multiple of 2, not 8
allow both args to be checked before bailing out
This commit is contained in:
@ -582,14 +582,12 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lna_gain % 8) {
|
if ((lna_gain % 8) || (vga_gain % 2)) {
|
||||||
|
if (lna_gain % 8)
|
||||||
printf("argument error: lna_gain (-l) must be a multiple of 8\n");
|
printf("argument error: lna_gain (-l) must be a multiple of 8\n");
|
||||||
usage();
|
if (vga_gain % 2)
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vga_gain % 8) {
|
|
||||||
printf("argument error: vga_gain (-g) must be a multiple of 2\n");
|
printf("argument error: vga_gain (-g) must be a multiple of 2\n");
|
||||||
|
|
||||||
usage();
|
usage();
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user