Source Code
- char rtc[24];
- snprintf(rtc, 24, "%04d-%02d-%02d %02d:%02d:%02d", //
- api::TimeKeeping::now.year, //
- api::TimeKeeping::now.month, //
- api::TimeKeeping::now.day, //
- api::TimeKeeping::now.hour, //
- api::TimeKeeping::now.minute, //
- api::TimeKeeping::now.second); //
- APPW_SetText(ID_IDLE_SCREEN, ID_TEXT_RTC, "");
- APPW_SetText(ID_IDLE_SCREEN, ID_TEXT_RTC, rtc);
I have traced this down into the sources, and it is because the pointer of the string does not change. between two runs of the code above, it does not get updated. I think this is incorrect, there should be a contents comparison or no comparison at all.
Unless, ofcourse, I am missing something here.