From d45b72ef68481853c3495b958141c4b09e55738b Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Thu, 7 May 2026 09:05:57 -0400 Subject: [PATCH] Settings: Increase response timeouts --- device/device.cpp | 2 +- device/idevicesettings.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/device/device.cpp b/device/device.cpp index 9edc1f36..99341457 100644 --- a/device/device.cpp +++ b/device/device.cpp @@ -3835,7 +3835,7 @@ bool Device::formatDisk(const DiskDetails& config, const DiskFormatProgress& han return com->sendCommand(ExtendedCommand::DiskFormatProgress, {}); }, std::make_shared(ExtendedCommand::DiskFormatProgress), - std::chrono::milliseconds(1000) + std::chrono::milliseconds(5000) ); if(!response) { diff --git a/device/idevicesettings.cpp b/device/idevicesettings.cpp index 82eb9b46..d80aff8d 100644 --- a/device/idevicesettings.cpp +++ b/device/idevicesettings.cpp @@ -235,7 +235,7 @@ bool IDeviceSettings::apply(bool temporary) { std::shared_ptr msg = std::dynamic_pointer_cast(com->waitForMessageSync([this, &bytestream]() { return com->sendCommand(Command::SetSettings, bytestream); - }, std::make_shared(Command::SetSettings), std::chrono::milliseconds(2000))); + }, std::make_shared(Command::SetSettings), std::chrono::milliseconds(5000))); if(!msg || msg->data[0] != 1) { // We did not receive a response // Attempt to get the settings from the device so we're up to date if possible @@ -261,7 +261,7 @@ bool IDeviceSettings::apply(bool temporary) { msg = std::dynamic_pointer_cast(com->waitForMessageSync([this, &bytestream]() { return com->sendCommand(Command::SetSettings, bytestream); - }, std::make_shared(Command::SetSettings), std::chrono::milliseconds(2000))); + }, std::make_shared(Command::SetSettings), std::chrono::milliseconds(5000))); if(!msg || msg->data[0] != 1) { // Attempt to get the settings from the device so we're up to date if possible if(refresh()) { @@ -303,7 +303,7 @@ bool IDeviceSettings::applyDefaults(bool temporary) { std::shared_ptr msg = std::dynamic_pointer_cast(com->waitForMessageSync([this]() { return com->sendCommand(Command::SetDefaultSettings); - }, std::make_shared(Command::SetDefaultSettings), std::chrono::milliseconds(1000))); + }, std::make_shared(Command::SetDefaultSettings), std::chrono::milliseconds(5000))); if(!msg || msg->data[0] != 1) { // Attempt to get the settings from the device so we're up to date if possible if(refresh()) { @@ -338,7 +338,7 @@ bool IDeviceSettings::applyDefaults(bool temporary) { msg = std::dynamic_pointer_cast(com->waitForMessageSync([this, &bytestream]() { return com->sendCommand(Command::SetSettings, bytestream); - }, std::make_shared(Command::SetSettings), std::chrono::milliseconds(2000))); + }, std::make_shared(Command::SetSettings), std::chrono::milliseconds(5000))); if(!msg || msg->data[0] != 1) { // Attempt to get the settings from the device so we're up to date if possible if(refresh()) {