DataFlash: Cast msg to uint8

* Clang requires this explicit cast
This commit is contained in:
Will Sackfield 2016-02-26 00:16:04 -05:00 committed by Andrew Tridgell
parent 723e166c13
commit 6f43b7121c
1 changed files with 1 additions and 1 deletions

View File

@ -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<uint8_t>(msg)),
time_us : AP_HAL::micros64(),
gps_time : gps.time_week_ms(),
gps_week : gps.time_week(),