mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-08-21 13:50:35 +08:00
dshot: fix optarg list
This commit is contained in:
@@ -1153,7 +1153,7 @@ int DShot::custom_command(int argc, char *argv[])
|
||||
int ch;
|
||||
const char *myoptarg = nullptr;
|
||||
|
||||
while ((ch = px4_getopt(argc, argv, "m:xd:", &myoptind, &myoptarg)) != EOF) {
|
||||
while ((ch = px4_getopt(argc, argv, "xd:", &myoptind, &myoptarg)) != EOF) {
|
||||
switch (ch) {
|
||||
case 'x':
|
||||
swap_rxtx = true;
|
||||
|
||||
Reference in New Issue
Block a user