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:
parent
b457b16227
commit
1b18d7aa14
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue