On Monday 30 May 2005 19:38, anonymous wrote:
> subject: ERROR of PRINTF_LIB_FLOAT of WinAVR-20050214.
>
> Good moring,
>
>       I have met a problem about "PRINTF_LIB_FLOAT". In the
> endless loop, it will occur a problem. After running a
> few minutes, the sentence of "printf("%5.1f
> %9.2f\n",fahrenheit, (5.0/9.0) * (fahrenheit - 32.0))
> " will display wrong characters. How to resolve it?
...
>   for(;;){
>
>     fdevopen(uart_putchar, NULL, 0);
>     printf("Fahrenheit  celsius\n");
>     printf("╩╙йо          иЦйо\n");  // could not
> display the chinese charaters(GB2312) 2004/08/10
>
>     for(fahrenheit = lower; fahrenheit <= upper;
> fahrenheit = fahrenheit + step ){
>       printf("%5.1f       %9.2f\n",fahrenheit, (5.0/9.0)
> * (fahrenheit - 32.0));
>     }
>   }
>
> return(0);
> }
...

`fdevopen' reduce heap at each loop (`for (;;)').

Regards.

P.S.  Yor accept computer may lost synchronization in discontinues
flow of bytes.



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to