DataFlash: move log-write-started logic to be backend-specific

This commit is contained in:
Peter Barker
2017-07-19 16:37:28 +01:00
committed by Francisco Ferreira
parent 1f0a14ab33
commit 0769432e63
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -830,7 +830,6 @@ void DataFlash_File::stop_logging(void)
if (_write_fd != -1) {
int fd = _write_fd;
_write_fd = -1;
log_write_started = false;
::close(fd);
}
}
@@ -899,7 +898,6 @@ uint16_t DataFlash_File::start_new_log(void)
free(fname);
_write_offset = 0;
_writebuf.clear();
log_write_started = true;
// now update lastlog.txt with the new log number
fname = _lastlog_file_name();