mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
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:
committed by
Beat Küng
parent
d7e502ec72
commit
eb215358fc
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user