Device: Wait up to 1s for GetAll response

If there's an active disk read in progress the default 50ms timeout is too short.
This commit is contained in:
Kyle Schwarz
2023-09-21 16:52:30 +00:00
parent 0c436621a0
commit e97b307c4d
+1 -1
View File
@@ -970,7 +970,7 @@ void Device::wiviThreadBody() {
// Use the command GetAll to get a WiVI::Info structure from the device // Use the command GetAll to get a WiVI::Info structure from the device
const auto generic = com->waitForMessageSync([this]() { const auto generic = com->waitForMessageSync([this]() {
return com->sendCommand(Command::WiVICommand, WiVI::CommandPacket::GetAll::Encode()); return com->sendCommand(Command::WiVICommand, WiVI::CommandPacket::GetAll::Encode());
}, filter); }, filter, std::chrono::milliseconds(1000));
if(!generic || generic->type != Message::Type::WiVICommandResponse) { if(!generic || generic->type != Message::Type::WiVICommandResponse) {
report(APIEvent::Type::WiVIStackRefreshFailed, APIEvent::Severity::Error); report(APIEvent::Type::WiVIStackRefreshFailed, APIEvent::Severity::Error);