K param not on valid option list
This commit is contained in:
2
ui/t.c
2
ui/t.c
@@ -33,7 +33,7 @@ char *device = "/dev/ttyS0";
|
|||||||
int K = 0;
|
int K = 0;
|
||||||
// char ligne[100];
|
// char ligne[100];
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "d:hv")) != -1) {
|
while ((opt = getopt(argc, argv, "d:hKv")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'd': device = optarg; break;
|
case 'd': device = optarg; break;
|
||||||
case 'h': help(0); break;
|
case 'h': help(0); break;
|
||||||
|
|||||||
Reference in New Issue
Block a user