-
Notifications
You must be signed in to change notification settings - Fork 238
[ravedude] add output modes, newline after n bytes or after char #549
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
base: main
Are you sure you want to change the base?
Conversation
464f52f
to
da3eeb9
Compare
Thanks a lot for your contribution! I like this change a lot. Right now, we are doing a rather large rework of ravedude in #522. I'll get back to your PR once that work is finished, otherwise things will get a bit too messy. I don't expect a lot of conflicts with your changes, though. |
Hi, sorry for only getting back to this now. #522 has landed. If you are still interested in pursuing this work here, please rebase ontop of the new code. I think your new options should also be moved into |
I’ll do that. Should I keep output-mode as a cli override? That’s probably the option I’d switch the most. |
Yeah, I think adding a CLI override is a good idea. |
94fc5d7
to
80801f5
Compare
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.
Thanks a lot for picking this up again!
I have a few comments, see below :) Please also check the CI after updating, it currently seems to throw some error.
Thanks for the very thorough review, I’ll do that tomorrow. I was happy that my git rebase was successful and also still want to test this with an Arduino. |
That should address all your comments, I didn’t test it yet though. |
Please run |
That should do it, sorry for not formatting it right away. I also tested it now, no problems (only that the console info was printed twice, fixed in the last commit. forgot to mention that in the commit message though) |
a571051
to
759b3c8
Compare
sometimes printing ascii isn’t useful, and the raw hex, binary or decimal data should be printed. newline_after adds a newline after the n’th byte newline_on adds a newline after the given byte
759b3c8
to
98a3395
Compare
From
--help
:This helps when working with non-ascii output.
Other solutions: