mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
dshot: fix optarg list
This commit is contained in:
parent
a9f5e5d70f
commit
4f70ed367e
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user