Conversation
asasine
requested review from
gjpmsft and
tullom
and
a lite review from Copilot
September 14, 2026 23:09
TFUc for 2*reset for more reliability
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The test currently fails, and the timeout behavior does not match the stated 3.2-second design.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This PR increases TFUc timing allowances to improve reliability when devices take longer to enter app mode.
Changes:
- Doubles the post-command reset wait.
- Extends the TFUc timeout budget.
File summaries
| File | Findings |
|---|---|
src/command/mod.rs |
Critical (3 votes): Existing test expectation causes cargo test to fail. Moderate (1 vote): The calculation produces a 3.7s timeout, not the stated 3.2s. |
src/asynchronous/internal/command.rs |
Moderate (2 votes): An unconditional 3.2s sleep prevents successful completion around 2s; mode verification should allow earlier success. |
Review details
Suppressed comments (1)
src/command/mod.rs:214
- With
RESET_DELAY_MS == 1600andTFUC_VERIFICATION_SLACK_MS == 500, this expression sets the timeout to 3700 ms, not the 3.2 seconds stated in the PR description. If 3.2 seconds is the intended cap, do not add the existing slack on top of the doubled delay; otherwise update the description and test to document the actual 3.7-second timeout.
Command::Tfuc => 2 * RESET_DELAY_MS + TFUC_VERIFICATION_SLACK_MS,
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
RobertZ2011
approved these changes
Sep 14, 2026
asasine
enabled auto-merge (squash)
September 14, 2026 23:38
gjpmsft
approved these changes
Sep 15, 2026
asasine
merged commit Sep 15, 2026
7471493
into
OpenDevicePartnership:stable-v0.1.y
13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TFUchas been shown to take up to 2s from when it's sent on the bus to when the device is first seen in an app mode. The previous timeout of 1.6s was not always sufficient for this, so I went ahead and doubled the delay to a safe 3.2s. The timeout remains +500ms.