From 2362072711075a302ffaa969411a9a4da9f200bf Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 8 Oct 2024 07:28:46 +1300 Subject: [PATCH] core: fix timeout (#2421) I must have broken this in a previous refactor. --- src/mavsdk/core/mavsdk_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mavsdk/core/mavsdk_impl.h b/src/mavsdk/core/mavsdk_impl.h index c1fdf1ac9..a42963a70 100644 --- a/src/mavsdk/core/mavsdk_impl.h +++ b/src/mavsdk/core/mavsdk_impl.h @@ -166,7 +166,7 @@ class MavsdkImpl { std::function _intercept_incoming_messages_callback{nullptr}; std::function _intercept_outgoing_messages_callback{nullptr}; - std::atomic _timeout_s{}; + std::atomic _timeout_s{DEFAULT_TIMEOUT_S}; static constexpr double HEARTBEAT_SEND_INTERVAL_S = 1.0; CallEveryHandler::Cookie _heartbeat_send_cookie{};