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 Francisco Ferreira
parent 73d6a05241
commit 4263c1a90c
1 changed files with 3 additions and 0 deletions

View File

@ -1194,6 +1194,9 @@ bool DataFlash_File::io_thread_alive() const
bool DataFlash_File::logging_failed() const
{
if (!_initialised) {
return true;
}
if (_open_error) {
return true;
}