From 8899455ea340c0da4e39057fc9ebe45060862772 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 16 May 2016 16:41:17 +1000 Subject: [PATCH] GCS_MAVLink: use extended MEMINFO message --- libraries/GCS_MAVLink/GCS_Common.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 4dae9ed038..6fb62464e0 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -211,10 +211,7 @@ void GCS_MAVLINK::send_meminfo(void) { unsigned __brkval = 0; uint32_t memory = hal.util->available_memory(); - if (memory > 0xffff) { - memory = 0xffff; - } - mavlink_msg_meminfo_send(chan, __brkval, memory); + mavlink_msg_meminfo_send(chan, __brkval, memory & 0xFFFF, memory); } // report power supply status