summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/FlashLight.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/FlashLight.cpp
parent2643cda7fee510462efc4447f3ca41f568ae8bce (diff)
Use ..set_text_static when statically-allocated strings are used
Diffstat (limited to 'src/displayapp/screens/FlashLight.cpp')
-rw-r--r--src/displayapp/screens/FlashLight.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/FlashLight.cpp b/src/displayapp/screens/FlashLight.cpp
index c4d0264..0634187 100644
--- a/src/displayapp/screens/FlashLight.cpp
+++ b/src/displayapp/screens/FlashLight.cpp
@@ -45,7 +45,7 @@ FlashLight::FlashLight(Pinetime::Applications::DisplayApp* app,
lv_label_set_long_mode(backgroundAction, LV_LABEL_LONG_CROP);
lv_obj_set_size(backgroundAction, 240, 240);
lv_obj_set_pos(backgroundAction, 0, 0);
- lv_label_set_text(backgroundAction, "");
+ lv_label_set_text_static(backgroundAction, "");
lv_obj_set_click(backgroundAction, true);
backgroundAction->user_data = this;
lv_obj_set_event_cb(backgroundAction, event_handler);