ATC_TLSR_Paper icon indicating copy to clipboard operation
ATC_TLSR_Paper copied to clipboard

u_sprintf calls print.

Open nethomas1968 opened this issue 1 year ago • 0 comments

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.

nethomas1968 avatar Apr 21 '23 10:04 nethomas1968