diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 13:52:28 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 13:52:28 +0200 |
commit | 875be65242dc58503c44ff522372b3cc2df83619 (patch) | |
tree | 742d8f980663af5a6bf5394e312b8b183086ffe9 | |
parent | 7d15e999f12fcfa7650c673e8be1daffbbfc46d2 (diff) | |
download | px4-firmware-875be65242dc58503c44ff522372b3cc2df83619.tar.gz px4-firmware-875be65242dc58503c44ff522372b3cc2df83619.tar.bz2 px4-firmware-875be65242dc58503c44ff522372b3cc2df83619.zip |
MPU6000: Fix usage function call to fit existing structure.
-rw-r--r-- | src/drivers/mpu6000/mpu6000.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index f6e00feee..5668b0865 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -1433,6 +1433,7 @@ void start(bool, enum Rotation); void test(bool); void reset(bool); void info(bool); +void usage(); /** * Start the driver. @@ -1604,17 +1605,17 @@ info(bool external_bus) exit(0); } - -} // namespace - void -mpu6000_usage() +usage() { warnx("missing command: try 'start', 'info', 'test', 'reset'"); warnx("options:"); warnx(" -X (external bus)"); + warnx(" -R rotation"); } +} // namespace + int mpu6000_main(int argc, char *argv[]) { @@ -1632,7 +1633,7 @@ mpu6000_main(int argc, char *argv[]) rotation = (enum Rotation)atoi(optarg); break; default: - mpu6000_usage(); + mpu6000::usage(); exit(0); } } |