From be35f5555c3ff65d1fa1e7a4db04549267c41a17 Mon Sep 17 00:00:00 2001 From: Florian Achermann Date: Thu, 27 Feb 2020 17:14:00 +0100 Subject: [PATCH] Add comment to explain iridium exception in the mavlink module --- src/modules/mavlink/mavlink_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index 994ec3d94e..a697445fab 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -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) { return _uart_fd; }