Skip to content

Conversation

@mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Nov 12, 2025

By default, humility flash --check prints every single mismatched byte. This isn't great in a manufacturing context.

This PR changes the default behavior to bail on the first mismatched byte. If you want every single byte, I added a new --verbose flag.

pub fn verify(
&self,
core: &mut dyn crate::core::Core,
check_all: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: something like fail_fast is more descriptive of the actual behavior since we will technically check all the bytes if they are correct. I also hate naming things and we want to keep the logic for --verbose consistent so I'm okay with this as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm leaning towards the slightly less descriptive name (check_all) versus needing to think about negation (fail_fast = !verbose).

@mkeeter mkeeter merged commit 1202bcb into master Nov 12, 2025
11 checks passed
@mkeeter mkeeter deleted the mkeeter/verbose-flash-check branch November 12, 2025 16:19
@Aaron-Hartwig
Copy link

Thanks, Matt!

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.

4 participants