Add comment to explain iridium exception in the mavlink module

This commit is contained in:
Florian Achermann 2020-02-27 17:14:00 +01:00 committed by Beat Küng
parent eb215358fc
commit be35f5555c
1 changed files with 4 additions and 0 deletions

View File

@ -609,6 +609,10 @@ Mavlink::mavlink_open_uart(const int baud, const char *uart_name, const bool for
} }
} }
/*
* Return here in the iridium mode since the iridium driver does not
* support the subsequent function calls.
*/
if (_uart_fd < 0 || _mode == MAVLINK_MODE_IRIDIUM) { if (_uart_fd < 0 || _mode == MAVLINK_MODE_IRIDIUM) {
return _uart_fd; return _uart_fd;
} }