mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-21 20:53:52 +08:00
DataFlash: move log-write-started logic to be backend-specific
This commit is contained in:
committed by
Francisco Ferreira
parent
1f0a14ab33
commit
0769432e63
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user