1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Speed up the first boot on generic firmware

This commit is contained in:
jflyper 2018-12-10 22:04:14 +09:00 committed by mikeller
parent c9788f1831
commit feab0bcb81
4 changed files with 37 additions and 7 deletions

View file

@ -503,7 +503,9 @@ void init(void)
if (!sensorsAutodetect()) {
// if gyro was not detected due to whatever reason, notify and don't arm.
indicateFailure(FAILURE_MISSING_ACC, 2);
if (isSystemConfigured()) {
indicateFailure(FAILURE_MISSING_ACC, 2);
}
setArmingDisabled(ARMING_DISABLED_NO_GYRO);
}