mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-09 16:13:56 -03:00
DataFlash: file not being initialised means logging is failed
This commit is contained in:
parent
0ecce2ed22
commit
52d8c21f1c
@ -1182,6 +1182,9 @@ bool DataFlash_File::io_thread_alive() const
|
||||
|
||||
bool DataFlash_File::logging_failed() const
|
||||
{
|
||||
if (!_initialised) {
|
||||
return true;
|
||||
}
|
||||
if (_open_error) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user