Merge pull request #424 from yashi/canbusload-add-error-message
canbusload: Enhance error message for missing bitratepull/438/head
commit
9e08e2272b
|
|
@ -325,6 +325,7 @@ int main(int argc, char **argv)
|
||||||
nptr = strchr(ptr, '@');
|
nptr = strchr(ptr, '@');
|
||||||
|
|
||||||
if (!nptr) {
|
if (!nptr) {
|
||||||
|
fprintf(stderr, "Specify CAN interfaces in the form <CAN interface>@<bitrate>, e.g. can0@500000\n");
|
||||||
print_usage(prg);
|
print_usage(prg);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue