From 728aca308917a7d4d0ba10fe8174e9408d77a9a6 Mon Sep 17 00:00:00 2001 From: login Date: Sun, 11 Dec 2022 22:59:47 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8Drtc=E6=97=B6?= =?UTF-8?q?=E9=92=9F=E5=AF=B9BCD=E7=A0=81=E8=BF=9B=E8=A1=8C=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=BF=98=E4=BA=86?= =?UTF-8?q?=E5=A4=84=E7=90=86day=E5=AD=97=E6=AE=B5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/src/driver/timers/rtc/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/driver/timers/rtc/rtc.c b/kernel/src/driver/timers/rtc/rtc.c index 219b0a5a..34ce48e7 100644 --- a/kernel/src/driver/timers/rtc/rtc.c +++ b/kernel/src/driver/timers/rtc/rtc.c @@ -45,7 +45,7 @@ int rtc_get_cmos_time(struct rtc_time_t *t) t->second = (t->second & 0xf) + (t->second >> 4) * 10; t->minute = (t->minute & 0xf) + (t->minute >> 4) * 10; t->hour = ((t->hour & 0xf) + ((t->hour & 0x70) >> 4) * 10) | (t->hour & 0x80); - + t->day = (t->day & 0xf) + ((t->day / 16) * 10); t->month = (t->month & 0xf) + (t->month >> 4) * 10; t->year = (t->year & 0xf) + (t->year >> 4) * 10; }