This commit is contained in:
Дмитрий Марков 2022-01-12 21:42:22 +05:00
parent 79273fe24f
commit 4c5847669f
No known key found for this signature in database
GPG key ID: 49CFEE49DBF77352
2 changed files with 5 additions and 3 deletions

View file

@ -100,7 +100,8 @@ WatchFaceTerminal::~WatchFaceTerminal() {
lv_obj_clean(lv_scr_act());
}
bool WatchFaceTerminal::Refresh() {
/*bool WatchFaceTerminal::Refresh() {*/
void WatchFaceTerminal::Refresh() {
batteryPercentRemaining = batteryController.PercentRemaining();
if (batteryPercentRemaining.IsUpdated()) {
auto batteryPercent = batteryPercentRemaining.Get();
@ -248,5 +249,5 @@ bool WatchFaceTerminal::Refresh() {
sprintf(stepString, "[STEP]#ee3377 %lu steps#", stepCount.Get());
lv_label_set_text(stepValue, stepString);
}
return running;
/*return running;*/
}

View file

@ -33,7 +33,8 @@ namespace Pinetime {
Controllers::MotionController& motionController);
~WatchFaceTerminal() override;
bool Refresh() override;
/*bool Refresh() override;*/
void Refresh() override;
void OnObjectEvent(lv_obj_t *pObj, lv_event_t i);