Fix proto version selection

This commit is contained in:
Lorenz Meier
2016-08-28 10:40:00 +02:00
parent 19c2ae615f
commit d4b588f84a
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -2090,7 +2090,7 @@ MavlinkReceiver::receive_thread(void *arg)
#endif
mavlink_message_t msg;
struct pollfd fds[1];
struct pollfd fds[1] = {};
if (_mavlink->get_protocol() == SERIAL) {
fds[0].fd = _mavlink->get_uart_fd();