// If there's an error logging data, raise an alert and stop logging.
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("MAVLink Logging failed. Could not write to file %1, logging disabled.").arg(_tempLogFile.fileName()));
_stopLogging();
_logSuspendError=true;
}
}
}
if(_tempLogFile.write(b)!=len)
{
// If there's an error logging data, raise an alert and stop logging.
emitprotocolStatusMessage(tr("MAVLink Protocol"),tr("MAVLink Logging failed. Could not write to file %1, logging disabled.").arg(_tempLogFile.fileName()));