Skip to content

Commit

Permalink
Sub: StartUnstartedLogging replaces logging_started/start_logging
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and rmackay9 committed Jun 15, 2017
1 parent d3842c4 commit 3c3fee6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions ArduSub/Log.cpp
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions ArduSub/system.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 3c3fee6

Please sign in to comment.