1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 19:40:31 +03:00

Fixed unnecessarily long startup time due to gyro detection.

This commit is contained in:
mikeller 2020-04-07 01:03:51 +12:00
parent 00f2e2a772
commit 489156602f
5 changed files with 51 additions and 18 deletions

View file

@ -4644,6 +4644,19 @@ static void cliStatus(const char *cmdName, char *cmdline)
cliPrintLinef("Config size: %d, Max available config: %d", getEEPROMConfigSize(), getEEPROMStorageSize());
// Sensors
cliPrint("Gyros detected:");
bool found = false;
for (unsigned pos = 0; pos < 7; pos++) {
if (gyroConfig()->gyrosDetected & BIT(pos)) {
if (found) {
cliPrint(",");
} else {
found = true;
}
cliPrintf(" gyro %d", pos + 1);
}
}
cliPrintLinefeed();
#if defined(USE_SENSOR_NAMES)
const uint32_t detectedSensorsMask = sensorsMask();