lur: fix the index parsing for disconnect

argv[3] is the /dev/hidraw path

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2016-06-23 16:13:28 +10:00
parent 20a57b76a8
commit f67389c017

View File

@@ -243,7 +243,7 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
index = atoi(argv[3]);
index = atoi(argv[2]);
disconnect_device(receiver, index);
} else {
usage();