Working with a 6700 series interface board and initially updated the rtc from a web server. Reading it after the initial update gives me the correct time. Although, when I run some simple code again to check the time, all the same values remain.
Here is a subroutine from my code:
Code:
void getTime()
{
unsigned int curHour = rtc.tm_hour;
unsigned int curMin = rtc.tm_min;
printf("Hour: %d\n", curHour);
printf("Min: %d\n", curMin);
}
If I had just updated rtc using server at the moment (1:17), I would get:
What am I forgetting to do here?