Device: Wider tolerance for disconnections
parent
5f44986c1b
commit
3764a2e814
|
|
@ -246,7 +246,7 @@ bool Device::open(OpenFlags flags, OpenStatusHandler handler) {
|
||||||
// No heartbeat received, request a status
|
// No heartbeat received, request a status
|
||||||
com->sendCommand(Command::RequestStatusUpdate);
|
com->sendCommand(Command::RequestStatusUpdate);
|
||||||
// The response should come back quickly if the com is quiet
|
// 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
|
// Check if we got a message, and if not, if settings are being applied
|
||||||
if(!receivedMessage && !heartbeatSuppressed()) {
|
if(!receivedMessage && !heartbeatSuppressed()) {
|
||||||
if(!stopHeartbeatThread && !isDisconnected())
|
if(!stopHeartbeatThread && !isDisconnected())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue