AP_CANManager: allow more libraries to compile with no HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2023-09-02 15:21:34 +10:00 committed by Peter Barker
parent ad105614bc
commit ffe46b760e
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ void AP_CANManager::log_text(AP_CANManager::LogLevel loglevel, const char *tag,
void AP_CANManager::log_retrieve(ExpandingString &str) const void AP_CANManager::log_retrieve(ExpandingString &str) const
{ {
if (_log_buf == nullptr) { if (_log_buf == nullptr) {
gcs().send_text(MAV_SEVERITY_ERROR, "Log buffer not available"); GCS_SEND_TEXT(MAV_SEVERITY_ERROR, "Log buffer not available");
return; return;
} }
str.append(_log_buf, _log_pos); str.append(_log_buf, _log_pos);