feat(rk3588s): unify display state semantics and bump version to 1.4.5

This commit is contained in:
2026-05-23 18:22:13 +08:00
parent 5347a728da
commit 161e0e654c
6 changed files with 390 additions and 377 deletions

Binary file not shown.

View File

@@ -142,7 +142,6 @@ static void apply_show_text_async(void *arg)
{
const char *text = (const char *)arg;
show_custom_text = true;
custom_text_blink = false;
custom_text_visible = true;
lv_label_set_text(custom_text_label, text ? text : "");
lv_obj_align(custom_text_label, LV_ALIGN_CENTER, 0, -25);
@@ -201,14 +200,28 @@ static void *fifo_thread(void *arg)
line[--len] = '\0';
}
if (strncmp(line, "show_text:", 10) == 0) {
if (strcmp(line, "show_ap") == 0) {
lv_async_call(apply_show_ap_async, NULL);
} else if (strcmp(line, "show_conn") == 0) {
strncpy(custom_text_buf, "Conn", sizeof(custom_text_buf) - 1);
custom_text_buf[sizeof(custom_text_buf) - 1] = '\0';
custom_text_blink = true;
lv_async_call(apply_show_text_async, custom_text_buf);
} else if (strcmp(line, "show_err0") == 0) {
strncpy(custom_text_buf, "Err0", sizeof(custom_text_buf) - 1);
custom_text_buf[sizeof(custom_text_buf) - 1] = '\0';
custom_text_blink = false;
lv_async_call(apply_show_text_async, custom_text_buf);
} else if (strncmp(line, "show_pin:", 9) == 0) {
strncpy(custom_text_buf, line + 9, sizeof(custom_text_buf) - 1);
custom_text_buf[sizeof(custom_text_buf) - 1] = '\0';
custom_text_blink = true;
lv_async_call(apply_show_text_async, custom_text_buf);
} else if (strncmp(line, "show_text:", 10) == 0) {
strncpy(custom_text_buf, line + 10, sizeof(custom_text_buf) - 1);
custom_text_buf[sizeof(custom_text_buf) - 1] = '\0';
if (strcmp(custom_text_buf, "AP") == 0) {
lv_async_call(apply_show_ap_async, NULL);
} else {
lv_async_call(apply_show_text_async, custom_text_buf);
}
custom_text_blink = false;
lv_async_call(apply_show_text_async, custom_text_buf);
} else if (strcmp(line, "show_time") == 0) {
lv_async_call(apply_show_time_async, NULL);
}