Skip to content

Commit 34419e1

Browse files
committed
update
Signed-off-by: Tang Sun <[email protected]>
1 parent e2883de commit 34419e1

4 files changed

Lines changed: 16 additions & 1 deletion

File tree

platform/atk-esp32s3-lvgl/boards/qemu/sdkconfig.defaults

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ CONFIG_RTCLAW_FEISHU_ENABLE=y
5353

5454
# ---- Telegram Bot ----
5555
# CONFIG_RTCLAW_TELEGRAM_ENABLE is not set
56+
57+
# ---- User Board Config ----
58+
CONFIG_RTCLAW_ES8388=y
59+
CONFIG_RTCLAW_USE_LVGL=y

platform/atk-esp32s3-lvgl/boards/qemu/sdkconfig.defaults.demo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ CONFIG_RTCLAW_TOOL_NET=y
4848

4949
# ---- Telegram off ----
5050
# CONFIG_RTCLAW_TELEGRAM_ENABLE is not set
51+
52+
# ---- User Board Config ----
53+
CONFIG_RTCLAW_ES8388=y
54+
CONFIG_RTCLAW_USE_LVGL=y

platform/atk-esp32s3-lvgl/boards/qemu/sdkconfig.defaults.feishu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,7 @@ CONFIG_RTCLAW_FEISHU_ENABLE=y
5252

5353
# ---- Telegram Bot ----
5454
# CONFIG_RTCLAW_TELEGRAM_ENABLE is not set
55+
56+
# ---- User Board Config ----
57+
CONFIG_RTCLAW_ES8388=y
58+
CONFIG_RTCLAW_USE_LVGL=y

platform/atk-esp32s3-lvgl/main/ui_control.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ static void ui_text_scroll_timer(lv_timer_t *timer)
8282

8383
int line_len = end - s_text_offset;
8484
char line[512] = {0};
85-
if (line_len > 0) strncpy(line, s_full_text + s_text_offset, line_len);
85+
if (line_len > 0) {
86+
line_len = LV_CLAMP(line_len, 0, sizeof(line) - 1);
87+
strncpy(line, s_full_text + s_text_offset, line_len);
88+
}
8689

8790
lv_textarea_set_text(ui_TextArea3, line);
8891
lv_obj_scroll_to_y(ui_TextArea3, 0, LV_ANIM_OFF);

0 commit comments

Comments
 (0)