修复了第一次双击和对话没有反应问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user