From 31daaf99335e2485cfb62902c0f5f850fa938626 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 4 Apr 2019 16:42:11 +1100 Subject: [PATCH] GCS_MAVLink: add floating-point-constant designators --- 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 77809adccb..b76961ec8f 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -1326,7 +1326,7 @@ bool GCS_MAVLINK::set_ap_message_interval(enum ap_message id, uint16_t interval_ // send messages out at most 80% of main loop rate if (interval_ms != 0 && interval_ms*800 < AP::scheduler().get_loop_period_us()) { - interval_ms = AP::scheduler().get_loop_period_us()/800.0; + interval_ms = AP::scheduler().get_loop_period_us()/800.0f; } // check if it's a specially-handled message: