GCS_MAVLink: use extended MEMINFO message

This commit is contained in:
Andrew Tridgell 2016-05-16 16:41:17 +10:00
parent 7e7c21d114
commit 8899455ea3
1 changed files with 1 additions and 4 deletions

View File

@ -211,10 +211,7 @@ void GCS_MAVLINK::send_meminfo(void)
{ {
unsigned __brkval = 0; unsigned __brkval = 0;
uint32_t memory = hal.util->available_memory(); uint32_t memory = hal.util->available_memory();
if (memory > 0xffff) { mavlink_msg_meminfo_send(chan, __brkval, memory & 0xFFFF, memory);
memory = 0xffff;
}
mavlink_msg_meminfo_send(chan, __brkval, memory);
} }
// report power supply status // report power supply status