Browse Source

DataFlash: Cast msg to uint8

* Clang requires this explicit cast
master
Will Sackfield 9 years ago committed by Andrew Tridgell
parent
commit
6f43b7121c
  1. 2
      libraries/DataFlash/LogFile.cpp

2
libraries/DataFlash/LogFile.cpp

@ -1555,7 +1555,7 @@ void DataFlash_Class::Log_Write_CameraInfo(enum LogMessages msg, const AP_AHRS &
} }
struct log_Camera pkt = { struct log_Camera pkt = {
LOG_PACKET_HEADER_INIT(msg), LOG_PACKET_HEADER_INIT(static_cast<uint8_t>(msg)),
time_us : AP_HAL::micros64(), time_us : AP_HAL::micros64(),
gps_time : gps.time_week_ms(), gps_time : gps.time_week_ms(),
gps_week : gps.time_week(), gps_week : gps.time_week(),

Loading…
Cancel
Save