mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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));
|
return ((_driver != nullptr) && (_type != AP_BeaconType_None));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAL_LOGGING_ENABLED
|
||||||
// Write beacon sensor (position) data
|
// Write beacon sensor (position) data
|
||||||
void AP_Beacon::log()
|
void AP_Beacon::log()
|
||||||
{
|
{
|
||||||
@ -417,6 +418,7 @@ void AP_Beacon::log()
|
|||||||
};
|
};
|
||||||
AP::logger().WriteBlock(&pkt_beacon, sizeof(pkt_beacon));
|
AP::logger().WriteBlock(&pkt_beacon, sizeof(pkt_beacon));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// singleton instance
|
// singleton instance
|
||||||
AP_Beacon *AP_Beacon::_singleton;
|
AP_Beacon *AP_Beacon::_singleton;
|
||||||
|
Loading…
Reference in New Issue
Block a user