Sprintf function blocking  the program

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DeAa_335316
Level 4
Level 4
First like received

Hello,
my program stuck at sprintf function .On UART screen it showing up to ADC3= ... then could not able to print pablisher value..  

   

UART_UartPutString("ADC3=");
 Adc_float=conversion*ADC_FACTOR; 
 sprintf( pablisher,"%.2f",Adc_float); //"%.4f"
 UART_UartPutString(pablisher);

   

Best Regards
Deepak

0 Likes
4 Replies