mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Fixed review
This commit is contained in:
parent
674d3b1e3b
commit
9a0e0b8a8d
2 changed files with 10 additions and 4 deletions
|
@ -157,10 +157,6 @@ void calculateEstimatedAltitude(timeUs_t currentTimeUs)
|
|||
if (haveBaroAlt) {
|
||||
goodGpsSats = positionConfig()->altNumSatsGpsUse;
|
||||
badGpsSats = positionConfig()->altNumSatsBaroFallback;
|
||||
if (badGpsSats >= goodGpsSats) {
|
||||
badGpsSats = goodGpsSats - 1;
|
||||
positionConfigMutable()->altNumSatsBaroFallback = badGpsSats;
|
||||
}
|
||||
}
|
||||
|
||||
if (ARMING_FLAG(ARMED)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue