Browse Source

GCS_MAVLink: remove send-text re allocating for fence

mission-4.1.18
Randy Mackay 5 years ago
parent
commit
04fcbacb9f
  1. 1
      libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp

1
libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp

@ -185,7 +185,6 @@ MAV_MISSION_RESULT MissionItemProtocol_Fence::allocate_receive_resources(const u @@ -185,7 +185,6 @@ MAV_MISSION_RESULT MissionItemProtocol_Fence::allocate_receive_resources(const u
}
const uint16_t allocation_size = count * sizeof(AC_PolyFenceItem);
gcs().send_text(MAV_SEVERITY_DEBUG, "Allocating %u bytes for fence upload", allocation_size);
if (allocation_size != 0) {
_new_items = (AC_PolyFenceItem*)malloc(allocation_size);
if (_new_items == nullptr) {

Loading…
Cancel
Save