diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 13:52:42 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 13:52:42 +0200 |
commit | 812d326912feb41bb37848d61b1a6e6e1d18ab90 (patch) | |
tree | c4a0ba47d0909a7db86948a5e9972ebbaf6aa007 | |
parent | 875be65242dc58503c44ff522372b3cc2df83619 (diff) | |
download | px4-firmware-812d326912feb41bb37848d61b1a6e6e1d18ab90.tar.gz px4-firmware-812d326912feb41bb37848d61b1a6e6e1d18ab90.tar.bz2 px4-firmware-812d326912feb41bb37848d61b1a6e6e1d18ab90.zip |
L3GD20: Fix usage function call to fit existing structure.
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index cad3ff937..64d1a7e55 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -982,7 +982,7 @@ namespace l3gd20 L3GD20 *g_dev; -void l3gd20_usage(); +void usage(); void start(bool external_bus, enum Rotation rotation); void test(); void reset(); @@ -1120,17 +1120,17 @@ info() exit(0); } - -} // namespace - void -l3gd20_usage() +usage() { warnx("missing command: try 'start', 'info', 'test', 'reset'"); warnx("options:"); warnx(" -X (external bus)"); + warnx(" -R rotation"); } +} // namespace + int l3gd20_main(int argc, char *argv[]) { @@ -1148,7 +1148,7 @@ l3gd20_main(int argc, char *argv[]) rotation = (enum Rotation)atoi(optarg); break; default: - l3gd20_usage(); + l3gd20::usage(); exit(0); } } |