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