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

View File

@ -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);
}
}