mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:11:36 +08:00
MPU6000: Fix usage function call to fit existing structure.
This commit is contained in:
@@ -1433,6 +1433,7 @@ void start(bool, enum Rotation);
|
|||||||
void test(bool);
|
void test(bool);
|
||||||
void reset(bool);
|
void reset(bool);
|
||||||
void info(bool);
|
void info(bool);
|
||||||
|
void usage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start the driver.
|
* Start the driver.
|
||||||
@@ -1604,17 +1605,17 @@ info(bool external_bus)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
void
|
void
|
||||||
mpu6000_usage()
|
usage()
|
||||||
{
|
{
|
||||||
warnx("missing command: try 'start', 'info', 'test', 'reset'");
|
warnx("missing command: try 'start', 'info', 'test', 'reset'");
|
||||||
warnx("options:");
|
warnx("options:");
|
||||||
warnx(" -X (external bus)");
|
warnx(" -X (external bus)");
|
||||||
|
warnx(" -R rotation");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
int
|
int
|
||||||
mpu6000_main(int argc, char *argv[])
|
mpu6000_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@@ -1632,7 +1633,7 @@ mpu6000_main(int argc, char *argv[])
|
|||||||
rotation = (enum Rotation)atoi(optarg);
|
rotation = (enum Rotation)atoi(optarg);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
mpu6000_usage();
|
mpu6000::usage();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user