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:
parent
00f2e2a772
commit
489156602f
5 changed files with 51 additions and 18 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue