mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 00:31:36 +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];
|
||||
|
||||
if (!strcmp(verb, "start")) {
|
||||
|
||||
Reference in New Issue
Block a user