dshot: fix optarg list

This commit is contained in:
Jacob Dahl 2026-01-27 21:06:33 -09:00
parent a9f5e5d70f
commit 4f70ed367e

View File

@ -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;