mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Terrain: eliminate GCS_MAVLINK::send_statustext_all
This commit is contained in:
parent
196f94aaae
commit
85756b7226
@ -393,7 +393,7 @@ bool AP_Terrain::allocate(void)
|
|||||||
cache = (struct grid_cache *)calloc(TERRAIN_GRID_BLOCK_CACHE_SIZE, sizeof(cache[0]));
|
cache = (struct grid_cache *)calloc(TERRAIN_GRID_BLOCK_CACHE_SIZE, sizeof(cache[0]));
|
||||||
if (cache == nullptr) {
|
if (cache == nullptr) {
|
||||||
enable.set(0);
|
enable.set(0);
|
||||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "Terrain: Allocation failed");
|
gcs().send_text(MAV_SEVERITY_CRITICAL, "Terrain: Allocation failed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
cache_size = TERRAIN_GRID_BLOCK_CACHE_SIZE;
|
cache_size = TERRAIN_GRID_BLOCK_CACHE_SIZE;
|
||||||
|
Loading…
Reference in New Issue
Block a user