Hello,
I am messing a little bit in source code.
I've extended the moonrock-patch, which calculates some moon data. The calculation and output on simulator seems to be correct, but if I compile for hardware, the output of double values with %f-tag in snprintf is corrupted and I see only the placeholder f on the screen.
Any Ideas?
struct tm tm_utc; // time values struct
double utc_offset=1.0; // shift of local time wrt. UTC
rb->snprintf(output,sizeof(output), "UTC: %02d:%02d:%02d %+2.1fh", tm_utc.tm_hour, tm_utc.tm_min, tm_utc.tm_sec, utc_offset );
rb->lcd_puts(0, 0,output);
The formatted output of the integers with 2 digits and leading zeros by %02d works, but double output of %+2.1f doesn't :-(
Another
Kindly Regards, Mark