diff --git a/ArduSub/Log.cpp b/ArduSub/Log.cpp index b851b0e4ed..66b0cecc0d 100644 --- a/ArduSub/Log.cpp +++ b/ArduSub/Log.cpp @@ -479,9 +479,7 @@ void Sub::start_logging() // dataflash may have stopped logging - when we get_log_data, // for example. Always try to restart: - if (!DataFlash.logging_started()) { - DataFlash.StartNewLog(); - } + DataFlash.StartUnstartedLogging(); } void Sub::log_init(void) diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index b0d51700c5..3d3c123fb6 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -300,9 +300,7 @@ bool Sub::should_log(uint32_t mask) if (!motors.armed() && !DataFlash.log_while_disarmed()) { return false; } - if (!DataFlash.logging_started()) { - start_logging(); - } + start_logging(); return true; #else return false;