mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
Ddded cli check for ism330dlc startup to prevent hardfault if no options are given.
This commit is contained in:
@@ -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];
|
const char *verb = argv[myoptind];
|
||||||
|
|
||||||
if (!strcmp(verb, "start")) {
|
if (!strcmp(verb, "start")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user