mavlink: only warn once if broadcast fails

This fixes the issue where the console was spammed if a broadcast failed
after a connection had previously been established.
This commit is contained in:
Julian Oes
2016-07-13 19:40:59 +02:00
committed by Beat Küng
parent 399d4ef833
commit 3ed8b735c2
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -508,6 +508,7 @@ private:
bool _src_addr_initialized;
bool _broadcast_address_found;
bool _broadcast_address_not_found_warned;
bool _broadcast_failed_warned;
uint8_t _network_buf[MAVLINK_MAX_PACKET_LEN];
unsigned _network_buf_len;
#endif