修复了第一次双击和对话没有反应问题

This commit is contained in:
CSBOOK\44744
2026-06-27 16:23:21 +08:00
parent 6aaf13d0a8
commit b829cd8ebc
6 changed files with 512 additions and 67 deletions
+11
View File
@@ -419,6 +419,17 @@ static esp_err_t lcd_direct_draw_asset_sequence_once(const lcd_direct_request_t
vTaskDelay(pdMS_TO_TICKS(frame_ms));
}
static TickType_t s_last_draw_success_tick;
TickType_t now = xTaskGetTickCount();
if (s_last_draw_success_tick == 0 ||
(now - s_last_draw_success_tick) >= pdMS_TO_TICKS(5000)) {
s_last_draw_success_tick = now;
ESP_LOGI(TAG,
"LCD asset sequence drawn asset=%s frames=%u",
request->asset_dir,
(unsigned)frame_count);
}
return ESP_OK;
}