mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-24 08:56:04 +08:00
DataFlash: move _initialised into DataFlash_Backend
This commit is contained in:
committed by
Francisco Ferreira
parent
999a5e6cda
commit
4234f4ef7a
@@ -53,7 +53,6 @@ DataFlash_File::DataFlash_File(DataFlash_Class &front,
|
||||
_read_fd_log_num(0),
|
||||
_read_offset(0),
|
||||
_write_offset(0),
|
||||
_initialised(false),
|
||||
_open_error(false),
|
||||
_log_directory(log_directory),
|
||||
_cached_oldest_log(0),
|
||||
@@ -520,9 +519,6 @@ bool DataFlash_File::WritesOK() const
|
||||
if (_write_fd == -1) {
|
||||
return false;
|
||||
}
|
||||
if (!_initialised) {
|
||||
return false;
|
||||
}
|
||||
if (_open_error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user