From 56fe2e4c43b94b178de27da10dff883c85eae7fa Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Fri, 3 Mar 2023 13:19:09 +0200 Subject: WatchFaceTerminal: Simplify time update check --- src/displayapp/screens/WatchFaceTerminal.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/displayapp/screens/WatchFaceTerminal.h') diff --git a/src/displayapp/screens/WatchFaceTerminal.h b/src/displayapp/screens/WatchFaceTerminal.h index 75e3434e..de1b1fef 100644 --- a/src/displayapp/screens/WatchFaceTerminal.h +++ b/src/displayapp/screens/WatchFaceTerminal.h @@ -35,25 +35,18 @@ namespace Pinetime { void Refresh() override; private: - uint8_t displayedHour = -1; - uint8_t displayedMinute = -1; - uint8_t displayedSecond = -1; - - 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; - Utility::DirtyValue batteryPercentRemaining {}; Utility::DirtyValue powerPresent {}; Utility::DirtyValue bleState {}; Utility::DirtyValue bleRadioEnabled {}; - Utility::DirtyValue> currentDateTime {}; + Utility::DirtyValue> currentDateTime {}; Utility::DirtyValue motionSensorOk {}; Utility::DirtyValue stepCount {}; Utility::DirtyValue heartbeat {}; Utility::DirtyValue heartbeatRunning {}; Utility::DirtyValue notificationState {}; + using days = std::chrono::duration>; // TODO: days is standard in c++20 + Utility::DirtyValue> currentDate; lv_obj_t* label_time; lv_obj_t* label_date; -- cgit v1.2.3-70-g09d2