From a02b0f8c4b9e64d226d616dd606670186febe157 Mon Sep 17 00:00:00 2001 From: YuXifeng <2860280851@qq.com> Date: Thu, 3 Apr 2025 17:58:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=8B=E4=BB=B6=E6=9C=AA?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=E6=A3=80=E6=B5=8B=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/flasher_tool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/flasher_tool.c b/main/flasher_tool.c index 7486614..b3828e8 100644 --- a/main/flasher_tool.c +++ b/main/flasher_tool.c @@ -33,7 +33,7 @@ void Flasher_tool_task(void *pvParameter) while (1) { - bits = xEventGroupWaitBits(Flasher_eventGroup, EVENT_CONNECT,pdFALSE,pdFALSE,portMAX_DELAY); + bits = xEventGroupWaitBits(Flasher_eventGroup, EVENT_CONNECT | EVENT_BURN_BEGIN,pdFALSE,pdFALSE,portMAX_DELAY); if (bits&EVENT_CONNECT) { ESP_LOGI(TAG, "connect_to_target initialization ing."); lv_obj_t *focused_obj = lv_group_get_focused(lv_group_get_default()); // 获取当前焦点对象 @@ -110,7 +110,7 @@ void Flasher_tool_task(void *pvParameter) } free(load_buff); loader_port_esp32_deinit(); - + xEventGroupClearBits(Flasher_eventGroup,EVENT_BURN_BEGIN); }