Changed option name '-l' to '-x' as this option should also go into canplayer.
Cosmetics in print_help().pull/7/head
parent
c2c6579bd6
commit
a121452698
8
cangen.c
8
cangen.c
|
|
@ -89,8 +89,8 @@ void print_usage(char *prg)
|
||||||
"default: 8\n");
|
"default: 8\n");
|
||||||
fprintf(stderr, " -f <canframe> (other fixed CAN frame) "
|
fprintf(stderr, " -f <canframe> (other fixed CAN frame) "
|
||||||
"default: 123#0123456789ABCDEF\n");
|
"default: 123#0123456789ABCDEF\n");
|
||||||
fprintf(stderr, " -l (local loopback disable) "
|
fprintf(stderr, " -x (disable loopback) "
|
||||||
"default: loopback\n");
|
"default: standard loopback\n");
|
||||||
fprintf(stderr, " -v (verbose) "
|
fprintf(stderr, " -v (verbose) "
|
||||||
"default: don't print sent frames\n");
|
"default: don't print sent frames\n");
|
||||||
}
|
}
|
||||||
|
|
@ -125,7 +125,7 @@ int main(int argc, char **argv)
|
||||||
signal(SIGHUP, sigterm);
|
signal(SIGHUP, sigterm);
|
||||||
signal(SIGINT, sigterm);
|
signal(SIGINT, sigterm);
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "g:eIDLf:lv")) != -1) {
|
while ((opt = getopt(argc, argv, "g:eIDLf:xv")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'g':
|
case 'g':
|
||||||
gap = strtoul(optarg, NULL, 10);
|
gap = strtoul(optarg, NULL, 10);
|
||||||
|
|
@ -159,7 +159,7 @@ int main(int argc, char **argv)
|
||||||
verbose = 1;
|
verbose = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'l':
|
case 'x':
|
||||||
loopback_disable = 1;
|
loopback_disable = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue