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

u_sprintf calls print. #36

Open
nethomas1968 opened this issue Apr 21, 2023 · 0 comments
Open

u_sprintf calls print. #36

nethomas1968 opened this issue Apr 21, 2023 · 0 comments

Comments

@nethomas1968
Copy link

Hi,
I notice that Firmware/components/application/print/u_printf.c has an implementation of sprintf(...) that call an internal "print" function.
The side effect of this is that whatever is being formatted doesn't just go to the specified char buffer, but also goes out the serial .
That's probably not the behaviour you want.

I've attached my 'hacked' version of that file which contains a local vsprintf which tries to accomplish the same task without outputting to serial. See attached.
It might be of some use to someone else too.

Ah, well, I tried to attach a file, with various formats, but github won't let me attach a file. If you want me to send you the file then please ask.

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

No branches or pull requests

1 participant