Copter: remove check for enabled in for Log_Write_Beacon

The DataFlash library does this now
This commit is contained in:
Peter Barker 2018-04-04 16:06:43 +10:00 committed by Randy Mackay
parent e74d07ff15
commit 2d31a7b318

View File

@ -356,9 +356,7 @@ void Copter::ten_hz_logging_loop()
DataFlash.Log_Write_Proximity(g2.proximity); // Write proximity sensor distances
#endif
#if BEACON_ENABLED == ENABLED
if (g2.beacon.enabled()) {
DataFlash.Log_Write_Beacon(g2.beacon);
}
DataFlash.Log_Write_Beacon(g2.beacon);
#endif
}
#if FRAME_CONFIG == HELI_FRAME