Fix crashing for the mavlink in the iridium mode

Special handling in the mavlink_open_uart function if mavlink is in the iridium mode.
This commit is contained in:
Florian Achermann
2020-03-22 09:51:57 -04:00
committed by Daniel Agar
parent e0f016c2b3
commit b135c69db2
+1 -1
View File
@@ -617,7 +617,7 @@ Mavlink::mavlink_open_uart(const int baud, const char *uart_name, const bool for
}
}
if (_uart_fd < 0) {
if (_uart_fd < 0 || _mode == MAVLINK_MODE_IRIDIUM) {
return _uart_fd;
}