Skip to content

Commit b135c69

Browse files
acfloriadagar
authored andcommitted
Fix crashing for the mavlink in the iridium mode
Special handling in the mavlink_open_uart function if mavlink is in the iridium mode.
1 parent e0f016c commit b135c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/mavlink/mavlink_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ Mavlink::mavlink_open_uart(const int baud, const char *uart_name, const bool for
617617
}
618618
}
619619

620-
if (_uart_fd < 0) {
620+
if (_uart_fd < 0 || _mode == MAVLINK_MODE_IRIDIUM) {
621621
return _uart_fd;
622622
}
623623

0 commit comments

Comments
 (0)