MPU6000: Fix usage function call to fit existing structure.

This commit is contained in:
Lorenz Meier
2014-07-08 13:52:28 +02:00
parent 7d15e999f1
commit 875be65242
+6 -5
View File
@@ -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);
} }
} }