Trying to format a string using sprintf and with padding , as this example:
sprintf(bufferIn, “%u-%.2u-%.2u”, a, b, c);
Instead of adding a “0” it prints nothing except “.2u%”.
I’ve found previous posts where this has been an issue and tried the suggestion of changing the “portBYTE_ALIGNMENT” from 8 to 4, with no success.
Can anyone help out?