修复在星期日对时崩溃的问题

This commit is contained in:
tpu
2025-06-14 12:54:08 +08:00
parent 42b482cd3b
commit 389a5e0877
2 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@
****************************************************************************************
*/
#define EPD_VERSION 0xA50f0003
#define EPD_VERSION 0xA50f0004
/*

View File

@@ -111,7 +111,7 @@ static int jieqi_info[] =
#define xiaohan_2020 451804
int year=2025, month=0, date=0, wday=2;
int year=2025, month=0, date=0, wday=3;
int l_year=4, l_month=11, l_date=1;
int hour=0, minute=0, second=0;
@@ -276,7 +276,7 @@ void clock_set(uint8_t *buf)
hour = buf[5];
minute = buf[6];
second = buf[7];
wday = buf[8]-1;
wday = buf[8];
l_year = buf[9];
l_month= buf[10];
l_date = buf[11]-1;
@@ -319,7 +319,7 @@ static char *jieqi_name[] = {
"小暑", "大暑", "立秋", "处暑", "白露", "秋分",
"寒露", "霜降", "立冬", "小雪", "大雪", "冬至",
};
static char *wday_str[] = {"", "", "", "", "", "", ""};
static char *wday_str[] = {"", "", "", "", "", "", ""};
static char *lday_str_lo[] = {"", "", "", "", "", "", "", "", "", "", "", "", ""};
static char *lday_str_hi[] = {"", "", "廿", "", ""};