mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-23 01:08:35 +00:00
Fixes the century bug. Close #32.
This commit is contained in:
parent
3c69ab4ef8
commit
204f7db213
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user