mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 13:33:40 +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;
|
int ch;
|
||||||
const char *myoptarg = nullptr;
|
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) {
|
switch (ch) {
|
||||||
case 'x':
|
case 'x':
|
||||||
swap_rxtx = true;
|
swap_rxtx = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user