diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 19:05:13 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 19:05:13 +0200 |
commit | 67e3a904b6526f9268530d9c8e9529585c0be235 (patch) | |
tree | 21dcfec7f00928911e9e092d56b66316000a0d10 /src/drivers | |
parent | 005dd206d17920761f8e27b21d54770da59faa13 (diff) | |
download | px4-firmware-67e3a904b6526f9268530d9c8e9529585c0be235.tar.gz px4-firmware-67e3a904b6526f9268530d9c8e9529585c0be235.tar.bz2 px4-firmware-67e3a904b6526f9268530d9c8e9529585c0be235.zip |
fix ms5611 code style for usage call
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/ms5611/ms5611.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/drivers/ms5611/ms5611.cpp b/src/drivers/ms5611/ms5611.cpp index 7a8d2eecf..fe669b5f5 100644 --- a/src/drivers/ms5611/ms5611.cpp +++ b/src/drivers/ms5611/ms5611.cpp @@ -781,6 +781,7 @@ void test(); void reset(); void info(); void calibrate(unsigned altitude); +void usage(); /** * MS5611 crc4 cribbed from the datasheet @@ -1057,16 +1058,16 @@ calibrate(unsigned altitude) exit(0); } -} // namespace - void -ms5611_usage() +usage() { warnx("missing command: try 'start', 'info', 'test', 'test2', 'reset', 'calibrate'"); warnx("options:"); warnx(" -X (external bus)"); } +} // namespace + int ms5611_main(int argc, char *argv[]) { @@ -1080,7 +1081,7 @@ ms5611_main(int argc, char *argv[]) external_bus = true; break; default: - ms5611_usage(); + ms5611::usage(); exit(0); } } |