rtl_test: tuner PLL benchmark only works with E4000

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Steve Markgraf 2012-06-28 14:44:25 +02:00
parent fc736ae67f
commit 304c7c863d

View File

@ -244,7 +244,11 @@ int main(int argc, char **argv)
fprintf(stderr, "WARNING: Failed to set sample rate.\n");
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;
}