From b34ff32f76f355866c3bd267dcc687c0d1958d29 Mon Sep 17 00:00:00 2001 From: JF Date: Sat, 18 Jan 2020 13:56:25 +0100 Subject: DateTimeController is now updated in the system task. It runs every 1s in Running mode, and every 1h in sleep mode. This should allow to keep the watch on time for more than 4 hours. --- src/DisplayApp/DisplayApp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/DisplayApp/DisplayApp.h') diff --git a/src/DisplayApp/DisplayApp.h b/src/DisplayApp/DisplayApp.h index 7e717ff8..8e92c7bb 100644 --- a/src/DisplayApp/DisplayApp.h +++ b/src/DisplayApp/DisplayApp.h @@ -43,8 +43,10 @@ namespace Pinetime { static const char* DayOfWeekToString(Pinetime::Controllers::DateTime::Days dayOfWeek); char currentChar[4]; - uint32_t deltaSeconds = 0; - date::year_month_day currentYmd; + uint16_t currentYear = 1970; + Pinetime::Controllers::DateTime::Months currentMonth = Pinetime::Controllers::DateTime::Months::Unknown; + Pinetime::Controllers::DateTime::Days currentDayOfWeek = Pinetime::Controllers::DateTime::Days::Unknown; + uint8_t currentDay = 0; States state = States::Running; void RunningState(); @@ -65,8 +67,6 @@ namespace Pinetime { Pinetime::Drivers::Cst816S touchPanel; void OnTouchEvent(); - uint32_t previousSystickCounter = 0; - std::chrono::time_point currentDateTime; }; } } -- cgit v1.2.3-70-g09d2