DataFlash: file not being initialised means logging is failed

This commit is contained in:
Peter Barker 2017-09-11 21:28:04 +10:00 committed by Andrew Tridgell
parent 0ecce2ed22
commit 52d8c21f1c
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}