1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

fixed cli status command (thx alexk)

moved mpuscale into core struct since it's not a changeable setting

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@447 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-10-21 00:22:33 +00:00
parent 8d7f82dc75
commit 47a4d30358
3 changed files with 9 additions and 9 deletions

View file

@ -50,7 +50,7 @@ static const char * const featureNames[] = {
// sync this with AvailableSensors enum from board.h
static const char * const sensorNames[] = {
"ACC", "BARO", "MAG", "SONAR", "GPS", NULL
"GYRO", "ACC", "BARO", "MAG", "SONAR", "GPS", NULL
};
static const char * const accNames[] = {
@ -896,7 +896,7 @@ static void cliStatus(char *cmdline)
if (sensors(SENSOR_ACC)) {
printf("ACCHW: %s", accNames[accHardware]);
if (accHardware == ACC_MPU6050)
printf(".%c", mcfg.mpu6050_scale ? 'o' : 'n');
printf(".%c", core.mpu6050_scale ? 'o' : 'n');
}
cliPrint("\r\n");