Been having some issue with weird results on an Arduino-based datalogger and finally tracked it down to the sprintf() statement used to build and format the result string. The screenshot shows the simplest example - where the order of two variables makes a difference to the output - but in others whole sections of the result buffer (buf) get overwritten or simply cease to exist. Short of rewriting sprintf() myself any ideas?
Last edited: