CMOS: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
m Updated the year
Brendan (talk | contribs)
m Bug in code to read all RTC registers
Line 324: Line 324:
century = get_RTC_register(century_register);
century = get_RTC_register(century_register);
}
}
} while( (last_second == second) && (last_minute == minute) && (last_hour == hour) &&
} while( (last_second != second) || (last_minute != minute) || (last_hour != hour) ||
(last_day == day) && (last_month == month) && (last_year == year) &&
(last_day != day) || (last_month != month) || (last_year != year) ||
(last_century == century) );
(last_century != century) );


registerB = get_RTC_register(0x0B);
registerB = get_RTC_register(0x0B);