void GCS_MAVLINK::send_meminfo(void) { #if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2 extern unsigned __brkval; #else unsigned __brkval = 0; #endif mavlink_msg_meminfo_send(chan, __brkval, hal.util->available_memory()); }
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); }