From 2d31a7b3189d8d464aef4d8f83fd64e176ecfa84 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 4 Apr 2018 16:06:43 +1000 Subject: [PATCH] Copter: remove check for enabled in for Log_Write_Beacon The DataFlash library does this now --- ArduCopter/ArduCopter.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ArduCopter/ArduCopter.cpp b/ArduCopter/ArduCopter.cpp index 5026a1af0d..e9c874184a 100644 --- a/ArduCopter/ArduCopter.cpp +++ b/ArduCopter/ArduCopter.cpp @@ -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