Skip to content

Commit 73c5ea2

Browse files
committed
Removed random #'s from the text values
1 parent bbfcf57 commit 73c5ea2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/displayapp/screens/WatchFaceTerminal.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void WatchFaceTerminal::Refresh() {
117117
hour = hour - 12;
118118
ampmChar[0] = 'P';
119119
}
120-
lv_label_set_text_fmt(label_time, "[TIME] %02d:%02d:%02d %s#", hour, minute, second, ampmChar);
120+
lv_label_set_text_fmt(label_time, "[TIME] %02d:%02d:%02d %s", hour, minute, second, ampmChar);
121121
} else {
122122
lv_label_set_text_fmt(label_time, "[TIME] %02d:%02d:%02d", hour, minute, second);
123123
}
@@ -127,7 +127,7 @@ void WatchFaceTerminal::Refresh() {
127127
uint16_t year = dateTimeController.Year();
128128
Controllers::DateTime::Months month = dateTimeController.Month();
129129
uint8_t day = dateTimeController.Day();
130-
lv_label_set_text_fmt(label_date, "[DATE] %04d-%02d-%02d#", short(year), char(month), char(day));
130+
lv_label_set_text_fmt(label_date, "[DATE] %04d-%02d-%02d", short(year), char(month), char(day));
131131
}
132132
}
133133

@@ -170,7 +170,7 @@ void WatchFaceTerminal::Refresh() {
170170

171171
stepCount = motionController.NbSteps();
172172
if (stepCount.IsUpdated()) {
173-
lv_label_set_text_fmt(stepValue, "[STEP] %lu steps#", stepCount.Get());
173+
lv_label_set_text_fmt(stepValue, "[STEP] %lu steps", stepCount.Get());
174174
}
175175

176176

@@ -180,9 +180,9 @@ void WatchFaceTerminal::Refresh() {
180180
if (heartbeatRunning.Get()) {
181181

182182
lv_obj_set_style_local_text_color(heartbeatValue, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::deepOrange);
183-
lv_label_set_text_fmt(heartbeatValue, "[L_HR] %d bpm#", heartbeat.Get());
183+
lv_label_set_text_fmt(heartbeatValue, "[L_HR] %d bpm", heartbeat.Get());
184184
} else {
185-
lv_label_set_text_static(heartbeatValue, "[L_HR] ---#");
185+
lv_label_set_text_static(heartbeatValue, "[L_HR] ---");
186186
lv_obj_set_style_local_text_color(heartbeatValue, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::gray);
187187
}
188188
}
@@ -191,14 +191,14 @@ void WatchFaceTerminal::Refresh() {
191191
bleRadioEnabled = bleController.IsRadioEnabled();
192192
if (bleState.IsUpdated() || bleRadioEnabled.IsUpdated()) {
193193
if (!bleRadioEnabled.Get()) {
194-
lv_label_set_text_static(connectState, "[STAT] Disabled#");
194+
lv_label_set_text_static(connectState, "[STAT] Disabled");
195195
lv_obj_set_style_local_text_color(connectState, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::gray);
196196
} else {
197197
if (bleState.Get()) {
198-
lv_label_set_text_static(connectState, "[STAT] Connected#");
198+
lv_label_set_text_static(connectState, "[STAT] Connected");
199199
lv_obj_set_style_local_text_color(connectState, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::blue);
200200
} else {
201-
lv_label_set_text_static(connectState, "[STAT] Disconnected#");
201+
lv_label_set_text_static(connectState, "[STAT] Disconnected");
202202
lv_obj_set_style_local_text_color(connectState, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::gray);
203203
}
204204
}

0 commit comments

Comments
 (0)