mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 10:07:36 +08:00
Mavlink: initialize _ping_stats
Uninitialized `_ping_stats.last_ping_time` caused ping statistics to be printed even when no ping was received.
This commit is contained in:
committed by
Lorenz Meier
parent
96443b3cf3
commit
c73944c7a2
@@ -259,6 +259,7 @@ Mavlink::Mavlink() :
|
||||
_network_port(14556),
|
||||
_remote_port(DEFAULT_REMOTE_PORT_UDP),
|
||||
_rstatus {},
|
||||
_ping_stats{},
|
||||
_message_buffer {},
|
||||
_message_buffer_mutex {},
|
||||
_send_mutex {},
|
||||
|
||||
Reference in New Issue
Block a user