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-02-24 10:58:33 +01:00
committed by Beat Küng
parent d7e502ec72
commit eb215358fc

View File

@@ -609,7 +609,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;
}