days_of_week in RTC_GetTime not updated

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

cross mob
User10239
Level 1
Level 1
Welcome! 10 replies posted 5 replies posted
Hi, I have to report, that variable "days_of_week" is not updated caused by missing
time_val.daysofweek=current_time->daysofweek; in rtc.c at line 288+1

existing Code in Function RTC_GetTime()
/* copy to local structure to keep data safe */
time_val.year = current_time->year;
time_val.month = current_time->month;
time_val.days = current_time->days;
time_val.hours = current_time->hours;
time_val.minutes = current_time->minutes;
time_val.seconds = current_time->seconds;
//pls. add following line to function RTC_SetTime()
time_val.daysofweek=current_time->daysofweek;

In RTC_GetTime(), days_of_week is already provided, but is always 0;

System: DAVE V4.3.2,
APP: RTC_0 4.1.12
µC: XMC4500
Function: RTC_SetTime()
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

The issue is fixed in the upcoming release.

Regards,
Jesus
0 Likes