mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Bugfix: Hard Fault hmc5883 with not params
Fault results from if (!strcmp(verb, "start")) {``` with null verb
This commit is contained in:
parent
bdfb2bbb8d
commit
a2ad92b2d7
@ -1779,6 +1779,11 @@ hmc5883_main(int argc, char *argv[])
|
||||
bool calibrate = false;
|
||||
bool temp_compensation = false;
|
||||
|
||||
if (argc < 2) {
|
||||
hmc5883::usage();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
while ((ch = getopt(argc, argv, "XISR:CT")) != EOF) {
|
||||
switch (ch) {
|
||||
case 'R':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user