From e8b1fc72e0498a4b8131d2e336c6d7130b23223a Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <andrew@tridgell.net>
Date: Fri, 9 Jan 2015 12:43:15 +1100
Subject: [PATCH] DataFlash: fixed build warning

---
 libraries/DataFlash/LogFile.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/DataFlash/LogFile.cpp b/libraries/DataFlash/LogFile.cpp
index bf408cfe0..91e472e1c 100644
--- a/libraries/DataFlash/LogFile.cpp
+++ b/libraries/DataFlash/LogFile.cpp
@@ -1035,7 +1035,7 @@ void DataFlash_Class::Log_Write_EKF(AP_AHRS_NavEKF &ahrs, bool optFlowEnabled)
         struct log_EKF5 pkt5 = {
             LOG_PACKET_HEADER_INIT(LOG_EKF5_MSG),
             time_ms : hal.scheduler->millis(),
-            normInnov : min((uint8_t)(100*normInnov),255),
+            normInnov : (uint8_t)(min(100*normInnov,255)),
             FIX : (int16_t)(1000*flowInnovX),
             FIY : (int16_t)(1000*flowInnovY),
             AFI : (int16_t)(1000*auxFlowInnov),
-- 
GitLab