From ada295f0eb7be83d9aff74327a0eb4311ab43828 Mon Sep 17 00:00:00 2001 From: ahmedsalah52 <46837894+ahmedsalah52@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:41:42 +0100 Subject: [PATCH] cast the rangefinder lateset altitude to float Co-authored-by: Petr Ledvina --- src/main/flight/position.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/flight/position.c b/src/main/flight/position.c index 0fec1eaff3..2510b856ba 100644 --- a/src/main/flight/position.c +++ b/src/main/flight/position.c @@ -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 ***