diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 13:52:10 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 13:52:10 +0200 |
commit | 7d15e999f12fcfa7650c673e8be1daffbbfc46d2 (patch) | |
tree | 50fd0495fde950c52803d4a463256be9416ab043 /src/drivers/lsm303d | |
parent | 92426c5cfc8e9746fe42e4c9c087a5e25a4be658 (diff) | |
download | px4-firmware-7d15e999f12fcfa7650c673e8be1daffbbfc46d2.tar.gz px4-firmware-7d15e999f12fcfa7650c673e8be1daffbbfc46d2.tar.bz2 px4-firmware-7d15e999f12fcfa7650c673e8be1daffbbfc46d2.zip |
LSM303: Fix usage function call to fit existing structure.
Diffstat (limited to 'src/drivers/lsm303d')
-rw-r--r-- | src/drivers/lsm303d/lsm303d.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp index 296899ccd..7ba0fcc88 100644 --- a/src/drivers/lsm303d/lsm303d.cpp +++ b/src/drivers/lsm303d/lsm303d.cpp @@ -1797,6 +1797,7 @@ void reset(); void info(); void regdump(); void logging(); +void usage(); /** * Start the driver. @@ -2013,17 +2014,17 @@ logging() exit(0); } - -} // namespace - void -lsm303d_usage() +usage() { warnx("missing command: try 'start', 'info', 'test', 'reset', 'regdump', 'logging'"); warnx("options:"); warnx(" -X (external bus)"); + warnx(" -R rotation"); } +} // namespace + int lsm303d_main(int argc, char *argv[]) { @@ -2041,7 +2042,7 @@ lsm303d_main(int argc, char *argv[]) rotation = (enum Rotation)atoi(optarg); break; default: - lsm303d_usage(); + lsm303d::usage(); exit(0); } } |