From 8110549fee881a0b104b9003618f030d04492b3e Mon Sep 17 00:00:00 2001 From: matthewbrandes Date: Tue, 8 Jul 2014 15:12:46 -0500 Subject: [PATCH] Update dump1090.c --- dump1090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump1090.c b/dump1090.c index 286fb05..281ac0c 100644 --- a/dump1090.c +++ b/dump1090.c @@ -515,7 +515,7 @@ int main(int argc, char **argv) { int more = j+1 < argc; // There are more arguments if (!strcmp(argv[j],"--device-index") && more) { - Modes.dev_index = atoi(argv[++j]); + Modes.dev_index = verbose_device_search(argv[++j]); } else if (!strcmp(argv[j],"--gain") && more) { Modes.gain = (int) atof(argv[++j])*10; // Gain is in tens of DBs } else if (!strcmp(argv[j],"--enable-agc")) {