Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions drivers/rtc/rtc_mchp_g1.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,11 @@ static int rtc_mchp_get_alarm_time(const struct device *dev, uint16_t alarm_id,
timeptr->tm_mday = (int)rtc_alarm_time.date_of_month;
timeptr->tm_year = (int)rtc_alarm_time.year;

timeptr->tm_wday = -1;
timeptr->tm_yday = -1;
timeptr->tm_isdst = -1;
timeptr->tm_nsec = 0;

return 0;
}

Expand Down Expand Up @@ -733,6 +738,11 @@ static int rtc_mchp_get_clock_time(const struct device *dev, struct rtc_time *ti
timeptr->tm_mday = (int)rtc_current_time.date_of_month;
timeptr->tm_year = (int)rtc_current_time.year;

timeptr->tm_wday = -1;
timeptr->tm_yday = -1;
timeptr->tm_isdst = -1;
timeptr->tm_nsec = 0;

return 0;
}

Expand Down