aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_test.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2012-06-28 14:44:25 +0200
committerSteve Markgraf <steve@steve-m.de>2012-06-28 14:44:25 +0200
commit304c7c863d77b34ba0c0c4911394a3cfc1cfa017 (patch)
tree6157c12d62f1e86f6152fb52d81c3728602390d6 /src/rtl_test.c
parentfc736ae67faa07a0d665a4aea8b44c24bda1bda5 (diff)
rtl_test: tuner PLL benchmark only works with E4000
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_test.c')
-rw-r--r--src/rtl_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rtl_test.c b/src/rtl_test.c
index e50fc47..acee6f4 100644
--- a/src/rtl_test.c
+++ b/src/rtl_test.c
@@ -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;
}