diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index a38b2ae934..2f3584e732 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -1561,7 +1561,7 @@ void Compass::probe_dronecan_compasses(void) } // We have found a replacement mag, let's replace the existing one // with this by setting the priority to zero and calling uavcan probe - gcs().send_text(MAV_SEVERITY_ALERT, "Mag: Compass #%d with DEVID %lu replaced", uint8_t(i), (unsigned long)_priority_did_list[i]); + GCS_SEND_TEXT(MAV_SEVERITY_ALERT, "Mag: Compass #%d with DEVID %lu replaced", uint8_t(i), (unsigned long)_priority_did_list[i]); _priority_did_stored_list[i].set_and_save(0); _priority_did_list[i] = 0;