Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the asset check code #728

Merged
merged 1 commit into from Apr 15, 2024
Merged

Conversation

monkbroc
Copy link
Member

Additional fixes on top of #726

  • Compare only the basename of the asset filename
  • Move the command to enter listening mode to after checking if an asset should be skipped to avoid putting the device in listening mode when skipping all the assets.

@monkbroc monkbroc force-pushed the bug/sc-127227/support-renamed-assets branch from 70babcd to d88bb6a Compare April 15, 2024 22:41
@@ -66,6 +66,12 @@ async function _flashDeviceInNormalMode(device, data, { name, progress, checkSki
}
return device;
}
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes more sense this approach since prepareToFlash always puts the device in listening for nonDFU modes.
I was thinking about a final reset after the whole process could be also a good way to have the device back to normal but would be too much since in all the times the device is being resetting when it flashes something hehe.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flashing with control requests resets by itself so it should be in a good state without an extra reset.

Copy link
Contributor

@hugomontero hugomontero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@monkbroc monkbroc merged commit 58e52f2 into master Apr 15, 2024
6 checks passed
@monkbroc monkbroc deleted the bug/sc-127227/support-renamed-assets branch April 15, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants