mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 06:21:36 +08:00
UART ESC: Fix syntax
This commit is contained in:
@@ -491,7 +491,7 @@ void usage()
|
|||||||
{
|
{
|
||||||
PX4_WARN("missing command: try 'start', 'stop', 'status'");
|
PX4_WARN("missing command: try 'start', 'stop', 'status'");
|
||||||
PX4_WARN("options:");
|
PX4_WARN("options:");
|
||||||
PX4_WARN(" -D device");
|
PX4_WARN(" -d device");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace uart_esc
|
} // namespace uart_esc
|
||||||
@@ -506,9 +506,9 @@ int uart_esc_main(int argc, char *argv[])
|
|||||||
int myoptind = 1;
|
int myoptind = 1;
|
||||||
const char *myoptarg = NULL;
|
const char *myoptarg = NULL;
|
||||||
|
|
||||||
while ((ch = px4_getopt(argc, argv, "D:", &myoptind, &myoptarg)) != EOF) {
|
while ((ch = px4_getopt(argc, argv, "d:", &myoptind, &myoptarg)) != EOF) {
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'D':
|
case 'd':
|
||||||
device = myoptarg;
|
device = myoptarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user