From 6304ade668342e4dff90aa3ff5c73973905e5f15 Mon Sep 17 00:00:00 2001 From: murata Date: Tue, 13 Oct 2020 00:18:28 +0900 Subject: [PATCH] GCS_MAVLink: Change to leave the lower 16 bits. --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index eaf5697f88..155b6e9f99 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1062,7 +1062,7 @@ void GCS_MAVLINK::update_send() #endif const uint32_t start = AP_HAL::millis(); - const uint16_t start16 = AP_HAL::millis16(); + const uint16_t start16 = start & 0xFFFF; while (AP_HAL::millis() - start < 5) { // spend a max of 5ms sending messages. This should never trigger - out_of_time() should become true if (gcs().out_of_time()) { #if GCS_DEBUG_SEND_MESSAGE_TIMINGS