DataFlash: do not log beacon if it is disabled

This commit is contained in:
Peter Barker 2018-02-22 15:53:55 +11:00 committed by Randy Mackay
parent f6cf52a748
commit b7f1040dca

View File

@ -1863,6 +1863,9 @@ void DataFlash_Class::Log_Write_AOA_SSA(AP_AHRS &ahrs)
// Write beacon sensor (position) data
void DataFlash_Class::Log_Write_Beacon(AP_Beacon &beacon)
{
if (!beacon.enabled()) {
return;
}
// position
Vector3f pos;
float accuracy = 0.0f;