When I try to use the function “lv_label_set_static_text” using long texts, it crashes.
What MCU/Processor/Board and compiler are you using?
ARM Cortex-M4. Kinetis K22
What do you experience?
I am using the function “lv_label_set_static_text” with the long_mode: LV_LABEL_LONG_DOT for the text. The problem is that “lv_label_set_static_text” calls “lv_label_refr_text”, and it try to modify the text (replacing the last characters by dots), but the text is const, so it crashes.
What do you expect?
I think that dots should be added but the text shouldn’t be modified in this case (const text).
Screenshot and/or video
The function “lv_label_set_static_text” has a pointer to a const text as parameter.
And, in function “lv_label_refr_text”, the const text is modified.