rtl_test: tuner PLL benchmark only works with E4000

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 13 years ago
parent fc736ae67f
commit 304c7c863d
  1. 6
      src/rtl_test.c

@ -244,7 +244,11 @@ int main(int argc, char **argv)
fprintf(stderr, "WARNING: Failed to set sample rate.\n"); fprintf(stderr, "WARNING: Failed to set sample rate.\n");
if (tuner_benchmark) { if (tuner_benchmark) {
e4k_benchmark(); if (rtlsdr_get_tuner_type(dev) == RTLSDR_TUNER_E4000)
e4k_benchmark();
else
fprintf(stderr, "No E4000 tuner found, aborting.\n");
goto exit; goto exit;
} }

Loading…
Cancel
Save