RTC_SET_TIME is not working
My RTC_SET_TIME is not working with current month december. I am passing all the required values like year, month, day, hour, minutes, seconds with in a structure to ioctl RTC_SET_TIME.
retval = ioctl(fd, RTC_SET_TIME, &set_rtc_tm);
if (retval == -1)
{
printf("\nRTC set time IOCTL Fail\n");
return RTC_FAIL;
}
|