summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Alarm.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-05-12 06:58:44 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-05-12 06:58:44 (GMT)
commit948661c9f650d59aa05ad93855703dab86603673 (patch)
treed4942017b5aaddde1ddfc3bfd96a34464d68106e /src/displayapp/screens/Alarm.cpp
parent2643cda7fee510462efc4447f3ca41f568ae8bce (diff)
Use ..set_text_static when statically-allocated strings are used
Diffstat (limited to 'src/displayapp/screens/Alarm.cpp')
-rw-r--r--src/displayapp/screens/Alarm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/Alarm.cpp b/src/displayapp/screens/Alarm.cpp
index b8c16f3..2557242 100644
--- a/src/displayapp/screens/Alarm.cpp
+++ b/src/displayapp/screens/Alarm.cpp
@@ -303,7 +303,7 @@ void Alarm::ShowInfo() {
lv_label_set_text_fmt(
txtMessage, "Time to\nalarm:\n%2lu Days\n%2lu Hours\n%2lu Minutes\n%2lu Seconds", daysToAlarm, hrsToAlarm, minToAlarm, secToAlarm);
} else {
- lv_label_set_text(txtMessage, "Alarm\nis not\nset.");
+ lv_label_set_text_static(txtMessage, "Alarm\nis not\nset.");
}
}
@@ -317,13 +317,13 @@ void Alarm::SetRecurButtonState() {
using Pinetime::Controllers::AlarmController;
switch (alarmController.Recurrence()) {
case AlarmController::RecurType::None:
- lv_label_set_text(txtRecur, "ONCE");
+ lv_label_set_text_static(txtRecur, "ONCE");
break;
case AlarmController::RecurType::Daily:
- lv_label_set_text(txtRecur, "DAILY");
+ lv_label_set_text_static(txtRecur, "DAILY");
break;
case AlarmController::RecurType::Weekdays:
- lv_label_set_text(txtRecur, "MON-FRI");
+ lv_label_set_text_static(txtRecur, "MON-FRI");
}
}