K param not on valid option list

This commit is contained in:
phyto 2019-05-22 11:30:56 +02:00
parent 1b03d60613
commit b986b8407d

2
ui/t.c
View File

@ -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;