From 6f43b7121c836b337ae66b0f27b57f8c8f802471 Mon Sep 17 00:00:00 2001 From: Will Sackfield Date: Fri, 26 Feb 2016 00:16:04 -0500 Subject: [PATCH] DataFlash: Cast msg to uint8 * Clang requires this explicit cast --- 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 735f57fd97..34ee3b5a8e 100644 --- a/libraries/DataFlash/LogFile.cpp +++ b/libraries/DataFlash/LogFile.cpp @@ -1555,7 +1555,7 @@ void DataFlash_Class::Log_Write_CameraInfo(enum LogMessages msg, const AP_AHRS & } struct log_Camera pkt = { - LOG_PACKET_HEADER_INIT(msg), + LOG_PACKET_HEADER_INIT(static_cast(msg)), time_us : AP_HAL::micros64(), gps_time : gps.time_week_ms(), gps_week : gps.time_week(),