diff --git a/ArduPlane/tailsitter.cpp b/ArduPlane/tailsitter.cpp index 7d00f87b07..93c27ac38f 100644 --- a/ArduPlane/tailsitter.cpp +++ b/ArduPlane/tailsitter.cpp @@ -151,7 +151,7 @@ bool QuadPlane::tailsitter_transition_fw_complete(void) } if (labs(ahrs_view->pitch_sensor) > tailsitter.transition_angle*100 || roll_cd > tailsitter.transition_angle*100 || - AP_HAL::millis() - transition_start_ms > transition_time_ms) { + AP_HAL::millis() - transition_start_ms > uint32_t(transition_time_ms)) { return true; } // still waiting