mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 18:01:36 +08: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user