mirror of
https://github.com/jam422470459/EPD-nRF52-hema213.git
synced 2025-12-06 16:42:49 +08:00
fix Lunar date
This commit is contained in:
@@ -198,7 +198,6 @@ void DrawGUI(gui_data_t *data, buffer_callback draw, display_mode_t mode)
|
||||
struct Lunar_Date Lunar;
|
||||
|
||||
transformTime(data->timestamp, &tm);
|
||||
LUNAR_SolarToLunar(&Lunar, tm.tm_year + YEAR0, tm.tm_mon + 1, tm.tm_mday);
|
||||
|
||||
Adafruit_GFX gfx;
|
||||
|
||||
@@ -211,6 +210,8 @@ void DrawGUI(gui_data_t *data, buffer_callback draw, display_mode_t mode)
|
||||
do {
|
||||
GFX_fillScreen(&gfx, GFX_WHITE);
|
||||
|
||||
LUNAR_SolarToLunar(&Lunar, tm.tm_year + YEAR0, tm.tm_mon + 1, tm.tm_mday);
|
||||
|
||||
switch (mode) {
|
||||
case MODE_CALENDAR:
|
||||
DrawCalendar(&gfx, &tm, &Lunar);
|
||||
|
||||
Reference in New Issue
Block a user