From 20a3024893a292cda2a65f6bbd2f9ba5da3b2718 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 7 Oct 2024 22:01:36 +1300 Subject: [PATCH] core: fix timeout 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{};