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

Remove blheli bug workaround

This commit is contained in:
borisbstyle 2015-09-02 13:53:08 +02:00
parent b457b16227
commit 1b18d7aa14

View file

@ -740,14 +740,8 @@ bool runLoop(uint32_t loopTime) {
bool loopTrigger = false;
if (masterConfig.syncGyroToLoop) {
if (ARMING_FLAG(ARMED)) {
if (gyroSyncCheckUpdate() || (int32_t)(currentTime - (loopTime + GYRO_WATCHDOG_DELAY)) >= 0) {
loopTrigger = true;
}
}
// Blheli arming workaround (stable looptime prior to arming)
else if (!ARMING_FLAG(ARMED) && ((int32_t)(currentTime - loopTime) >= 0)) {
loopTrigger = true;
if (gyroSyncCheckUpdate() || (int32_t)(currentTime - (loopTime + GYRO_WATCHDOG_DELAY)) >= 0) {
loopTrigger = true;
}
}