AP_Beacon: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:05 +10:00 committed by Andrew Tridgell
parent cddb58e105
commit 6e27488bfd
1 changed files with 2 additions and 0 deletions

View File

@ -391,6 +391,7 @@ bool AP_Beacon::device_ready(void) const
return ((_driver != nullptr) && (_type != AP_BeaconType_None));
}
#if HAL_LOGGING_ENABLED
// Write beacon sensor (position) data
void AP_Beacon::log()
{
@ -417,6 +418,7 @@ void AP_Beacon::log()
};
AP::logger().WriteBlock(&pkt_beacon, sizeof(pkt_beacon));
}
#endif
// singleton instance
AP_Beacon *AP_Beacon::_singleton;