-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Support octal display hint #857
Conversation
@@ -17,6 +17,8 @@ fn main() -> ! { | |||
defmt::info!("hex alt {=u8:#x}", x); | |||
defmt::info!("HEX {=u8:X}", x); | |||
defmt::info!("HEX alt {=u8:#X}", x); | |||
defmt::info!("octal {=u8:o}", x); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add the tests at the end, to minimise the diff on the expected output file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, actually, that probably isn't going to help. Never mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Thank you for the PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Please not that this is a breaking change in defmt-parser, since we add a new enum variant to a public enum. I think this is fine though, since the parser is still marked unstable and as far as I know, no one is using the parser directly, everyone is using the decoder, or defmt.
Updated tests and docs based on the binary display hint.