From e97b307c4dac6e70c95d875086771ebbf85affc5 Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Thu, 21 Sep 2023 16:52:30 +0000 Subject: [PATCH] Device: Wait up to 1s for GetAll response If there's an active disk read in progress the default 50ms timeout is too short. --- device/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/device.cpp b/device/device.cpp index ee155e8..3f578fa 100644 --- a/device/device.cpp +++ b/device/device.cpp @@ -970,7 +970,7 @@ void Device::wiviThreadBody() { // Use the command GetAll to get a WiVI::Info structure from the device const auto generic = com->waitForMessageSync([this]() { return com->sendCommand(Command::WiVICommand, WiVI::CommandPacket::GetAll::Encode()); - }, filter); + }, filter, std::chrono::milliseconds(1000)); if(!generic || generic->type != Message::Type::WiVICommandResponse) { report(APIEvent::Type::WiVIStackRefreshFailed, APIEvent::Severity::Error);