mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
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:
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user