Skip to content

Display uf2 combine --offset default-value in hexadecimal - #353

Open
lurch wants to merge 3 commits into
developfrom
lurch-patch-2
Open

Display uf2 combine --offset default-value in hexadecimal#353
lurch wants to merge 3 commits into
developfrom
lurch-patch-2

Conversation

@lurch

@lurch lurch commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Possible fix for #352

@lurch lurch linked an issue Jul 27, 2026 that may be closed by this pull request
Comment thread main.cpp Outdated
(
option("--offset").set(settings.uf2.offset_set) % "Offset second UF2 by amount" &
hex("offset").set(settings.uf2.offset) % "offset amount (default to 0)"
hex("offset").set(settings.uf2.offset) % "offset amount (default to 0x0)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe worth explicitly mentioning it is hexadecimal too?

Suggested change
hex("offset").set(settings.uf2.offset) % "offset amount (default to 0x0)"
hex("offset").set(settings.uf2.offset) % "offset amount (hexadecimal, default to 0x0)"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I somehow completely missed this comment! 🤦 (must have got buried under all my other GH notifications)
I've no objections to this, but note that there's many other example / default values listed in https://github.com/raspberrypi/picotool/blob/develop/README.md that start with 0x and that aren't explicitly stated to be hexadecimal.

Comment thread README.md Outdated
@will-v-pi will-v-pi added this to the 2.4.0 milestone Aug 12, 2026
Co-authored-by: will-v-pi <108662275+will-v-pi@users.noreply.github.com>
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.

uf2 combine: --offset representation

2 participants