mirror of https://github.com/ArduPilot/ardupilot
AP_CANManager: allow more libraries to compile with no HAL_GCS_ENABLED
This commit is contained in:
parent
ad105614bc
commit
ffe46b760e
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue