mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-09 00:38:31 +01:00
Merge pull request #177 from ckuethe/master
Explain which gain setting was unacceptable
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user