From 3764a2e8143594cad581d90edde376e9d9cdc9b5 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Mon, 20 Sep 2021 19:29:57 -0400 Subject: [PATCH] Device: Wider tolerance for disconnections --- device/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/device.cpp b/device/device.cpp index 5d12ac3..80cc122 100644 --- a/device/device.cpp +++ b/device/device.cpp @@ -246,7 +246,7 @@ bool Device::open(OpenFlags flags, OpenStatusHandler handler) { // No heartbeat received, request a status com->sendCommand(Command::RequestStatusUpdate); // The response should come back quickly if the com is quiet - std::this_thread::sleep_for(std::chrono::milliseconds(10)); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); // Check if we got a message, and if not, if settings are being applied if(!receivedMessage && !heartbeatSuppressed()) { if(!stopHeartbeatThread && !isDisconnected())