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
e19469c0ba
commit
674d3b1e3b
2 changed files with 7 additions and 3 deletions
|
@ -157,6 +157,10 @@ 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