mavlink_messages.cpp: only warn once, when MAVLink log opening fails

This happens for example if no SD card is present.
This commit is contained in:
Beat Küng 2016-07-19 09:27:26 +02:00 committed by Julian Oes
parent 9a8c092116
commit 0f6a6f7150

View File

@ -459,6 +459,7 @@ protected:
#endif
} else {
PX4_WARN("Failed to open MAVLink log: %s", log_file_path);
_write_err_count = write_err_threshold; //only try to open the file once
}
}
}