From 94044d2fdca09a3d663f1ba98276f778e6037a70 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 21 Oct 2023 23:14:41 -0400 Subject: [PATCH] Removed battery percent from digital watch face --- src/displayapp/screens/WatchFaceDigital.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/displayapp/screens/WatchFaceDigital.cpp b/src/displayapp/screens/WatchFaceDigital.cpp index 1720f372..d37391e2 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -22,7 +22,6 @@ WatchFaceDigital::WatchFaceDigital(Controllers::DateTime& dateTimeController, Controllers::MotionController& motionController) : currentDateTime {{}}, dateTimeController {dateTimeController}, - batteryController {batteryController}, notificationManager {notificationManager}, settingsController {settingsController}, heartRateController {heartRateController}, @@ -36,11 +35,6 @@ WatchFaceDigital::WatchFaceDigital(Controllers::DateTime& dateTimeController, lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(false)); lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 0); - - batteryValue = lv_label_create(lv_scr_act(), nullptr); - //lv_label_set_recolor(batteryValue, true); - lv_obj_align(batteryValue, lv_scr_act(), LV_ALIGN_IN_RIGHT_MID, -3, -110); - label_seconds = lv_label_create(lv_scr_act(), nullptr); // for secs lv_obj_align(label_seconds, lv_scr_act(), LV_ALIGN_IN_RIGHT_MID, 0, -55); lv_obj_set_style_local_text_color(label_seconds, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999)); @@ -89,11 +83,6 @@ WatchFaceDigital::~WatchFaceDigital() { void WatchFaceDigital::Refresh() { statusIcons.Update(); - - batteryPercentRemaining = batteryController.PercentRemaining(); - if (batteryPercentRemaining.IsUpdated()) { - lv_label_set_text_fmt(batteryValue, "%d%%", batteryPercentRemaining.Get()); - } notificationState = notificationManager.AreNewNotificationsAvailable(); if (notificationState.IsUpdated()) {