mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 06:11:36 +08:00
Revert "fix handling of mavlink mode argument"
This reverts commit 485f0d0379.
This commit is contained in:
@@ -1351,11 +1351,9 @@ Mavlink::task_main(int argc, char *argv[])
|
||||
_mode = MAVLINK_MODE_ONBOARD;
|
||||
} else if (strcmp(optarg, "onboard") == 0) {
|
||||
_mode = MAVLINK_MODE_ONBOARD;
|
||||
|
||||
} else if (strcmp(myoptarg, "osd") == 0) {
|
||||
} else if (strcmp(optarg, "osd") == 0) {
|
||||
_mode = MAVLINK_MODE_OSD;
|
||||
|
||||
} else if (strcmp(myoptarg, "config") == 0) {
|
||||
} else if (strcmp(optarg, "config") == 0) {
|
||||
_mode = MAVLINK_MODE_CONFIG;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user