Don't ignore the rate argument

master
Mark Hills 2012-07-29 18:12:42 +01:00
parent b1dab96f00
commit 51419766a5
1 changed files with 4 additions and 1 deletions

5
rx.c
View File

@ -177,7 +177,7 @@ int main(int argc, char *argv[])
for (;;) {
int c;
c = getopt(argc, argv, "c:d:h:j:m:p:v:");
c = getopt(argc, argv, "c:d:h:j:m:p:r:v:");
if (c == -1)
break;
switch (c) {
@ -199,6 +199,9 @@ int main(int argc, char *argv[])
case 'p':
port = atoi(optarg);
break;
case 'r':
rate = atoi(optarg);
break;
case 'v':
verbose = atoi(optarg);
break;