mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AC_Fence: allow more libraries to compile with no HAL_GCS_ENABLED
This commit is contained in:
parent
ee1ce32ead
commit
0311aea4a5
@ -638,7 +638,7 @@ void AC_Fence::record_breach(uint8_t fence_type)
|
|||||||
// emit a message indicated we're newly-breached, but not too often
|
// emit a message indicated we're newly-breached, but not too often
|
||||||
if (now - _last_breach_notify_sent_ms > 1000) {
|
if (now - _last_breach_notify_sent_ms > 1000) {
|
||||||
_last_breach_notify_sent_ms = now;
|
_last_breach_notify_sent_ms = now;
|
||||||
gcs().send_message(MSG_FENCE_STATUS);
|
GCS_SEND_MESSAGE(MSG_FENCE_STATUS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user