mirror of https://github.com/ArduPilot/ardupilot
AP_Beacon: allow compilation with HAL_LOGGING_ENABLED false
This commit is contained in:
parent
cddb58e105
commit
6e27488bfd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue