Fixes the century bug. Close #32.

This commit is contained in:
Travis Goodspeed 2017-10-11 17:09:07 -04:00
parent 3c69ab4ef8
commit 204f7db213

View File

@ -133,7 +133,7 @@ static void draw_settingtime(char ch){
if(flicker)
lcd_cleardigit(6);
if(ch){
RTCYEAR=RTCYEAR-RTCYEAR%100+inputdigit*100+RTCYEAR%10;
RTCYEAR=RTCYEAR-RTCYEAR%1000+inputdigit*100+RTCYEAR%100;
settingclock++;
}
break;