From fb844975428d1cf9f944348446168a7874d9be5e Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 20 Nov 2024 21:42:27 +0100 Subject: [PATCH] non rtl-sdr: use default gain when gain=auto passed --- readsb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/readsb.c b/readsb.c index 527a93a7..5e3b385a 100644 --- a/readsb.c +++ b/readsb.c @@ -1532,6 +1532,7 @@ static void parseGainOpt(char *arg) { if (strcasestr(arg, "auto") == arg) { if (Modes.sdr_type != SDR_RTLSDR) { fprintf(stderr, "autogain not supported for non rtl-sdr devices\n"); + return; } if (strcasestr(arg, "auto-verbose") == arg) { fprintf(stderr, "autogain enabled, verbose mode\n");