I'm transitioning a project form CW6.3 to CW10.1 Eclipse IDE. All seems to run well except for this line of code. It displays: "%4.1fV" instead of the appropriate value.
displayLen = (unsigned char)sprintf(newString,"%4.1fV", (float)battV/1000);
I have other sprintf commands in this same function that work fine. So, I believe this has something to do with the float values.
I tried changing the Processor settings for Floating Points from Software to Hardware, but the code stopped building and didn't give me any errors. What other settings should I check?