mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: use extended MEMINFO message
This commit is contained in:
parent
7e7c21d114
commit
8899455ea3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue