1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

cast the rangefinder lateset altitude to float

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
This commit is contained in:
ahmedsalah52 2024-10-27 18:41:42 +01:00 committed by GitHub
parent a92630a5a2
commit ada295f0eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ void calculateEstimatedAltitude(void)
#endif
#ifdef USE_RANGEFINDER
float rangefinderAltCm = (float)rangefinderGetLatestAltitude();;
float rangefinderAltCm = rangefinderGetLatestAltitude();;
float rangefinderTrust = (float)(rangefinderConfig()->rangefinder_trust) / 100.0f;
#endif
// *** DISARMED ***