From 11ade64166c8900abb5574dd9d4aa2ae597f69c5 Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Fri, 3 Mar 2023 12:20:18 +0200 Subject: WatchFaceAnalog: Simplify date update check --- src/displayapp/screens/WatchFaceAnalog.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/displayapp/screens/WatchFaceAnalog.h') diff --git a/src/displayapp/screens/WatchFaceAnalog.h b/src/displayapp/screens/WatchFaceAnalog.h index cbb0b2cb..b32293da 100644 --- a/src/displayapp/screens/WatchFaceAnalog.h +++ b/src/displayapp/screens/WatchFaceAnalog.h @@ -37,15 +37,13 @@ namespace Pinetime { private: uint8_t sHour, sMinute, sSecond; - Pinetime::Controllers::DateTime::Months currentMonth = Pinetime::Controllers::DateTime::Months::Unknown; - Pinetime::Controllers::DateTime::Days currentDayOfWeek = Pinetime::Controllers::DateTime::Days::Unknown; - uint8_t currentDay = 0; - DirtyValue batteryPercentRemaining {0}; DirtyValue isCharging {}; DirtyValue bleState {}; DirtyValue> currentDateTime; DirtyValue notificationState {false}; + using days = std::chrono::duration>; // TODO: days is standard in c++20 + DirtyValue> currentDate; lv_obj_t* hour_body; lv_obj_t* hour_body_trace; -- cgit v1.2.3-70-g09d2