APMControl: Cast type to uint8

* Clang requires that the type be explicitly cast
to uint8
This commit is contained in:
Will Sackfield 2016-02-26 00:14:06 -05:00 committed by Andrew Tridgell
parent fabe235130
commit 8c98eb2b84

View File

@ -337,7 +337,7 @@ void AP_AutoTune::write_log(float servo, float demanded, float achieved)
struct log_ATRP pkt = {
LOG_PACKET_HEADER_INIT(LOG_ATRP_MSG),
time_us : AP_HAL::micros64(),
type : type,
type : static_cast<uint8_t>(type),
state : (uint8_t)state,
servo : (int16_t)(servo*100),
demanded : demanded,