forked from Archive/PX4-Autopilot
Ddded cli check for ism330dlc startup to prevent hardfault if no options are given.
This commit is contained in:
parent
e4a526e3b2
commit
49cb21016a
|
@ -132,6 +132,11 @@ extern "C" __EXPORT int ism330dlc_main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
if (myoptind >= argc) {
|
||||
ism330dlc::usage();
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char *verb = argv[myoptind];
|
||||
|
||||
if (!strcmp(verb, "start")) {
|
||||
|
|
Loading…
Reference in New Issue