Merge pull request #177 from ckuethe/master

Explain which gain setting was unacceptable
This commit is contained in:
Michael Ossmann
2015-07-08 16:11:51 -06:00
2 changed files with 8 additions and 0 deletions

View File

@@ -581,6 +581,12 @@ int main(int argc, char** argv) {
}
}
if (lna_gain % 8)
printf("warning: lna_gain (-l) must be a multiple of 8\n");
if (vga_gain % 2)
printf("warning: vga_gain (-g) must be a multiple of 2\n");
if (samples_to_xfer >= SAMPLES_TO_XFER_MAX) {
printf("argument error: num_samples must be less than %s/%sMio\n",
u64toa(SAMPLES_TO_XFER_MAX,&ascii_u64_data1),