RTC_SET_TIME is not working
I am using RTC_SET_TIME and passing a structure address with all required values like hour, minute, year, month ,day and second to it. Still it is not working for current month december.
retval = ioctl(fd, RTC_SET_TIME, &set_rtc_tm);
if (retval == -1)
{
printf("\nRTC set time IOCTL Fail\n");
return RTC_FAIL;
}
Regards
Swapnil Dixit
|