From 6d1f42d1c503757f2109e21abed3c791c8f4f32f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 11 Jun 2017 21:33:11 +1000 Subject: [PATCH] Tracker: unconditionally start unstarted logging --- AntennaTracker/Log.cpp | 5 +---- AntennaTracker/Tracker.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/AntennaTracker/Log.cpp b/AntennaTracker/Log.cpp index e4ea59fd62..20712c124b 100644 --- a/AntennaTracker/Log.cpp +++ b/AntennaTracker/Log.cpp @@ -88,10 +88,7 @@ void Tracker::Log_Write_Vehicle_Startup_Messages() void Tracker::start_logging() { if (g.log_bitmask != 0) { - if (!logging_started) { - logging_started = true; - DataFlash.StartUnstartedLogging(); - } + DataFlash.StartUnstartedLogging(); } } diff --git a/AntennaTracker/Tracker.h b/AntennaTracker/Tracker.h index bea7c725bd..3757b37a17 100644 --- a/AntennaTracker/Tracker.h +++ b/AntennaTracker/Tracker.h @@ -99,7 +99,6 @@ private: // has a log download started? bool in_log_download = false; - bool logging_started = false; DataFlash_Class DataFlash; AP_GPS gps;