File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 66- Added display flush wait callback support
77- Added support for buffered LCD panel (esp_lcd_buffered)
88
9+ ### Fixes
10+ - Fixed LVGL9 task delay calculation
11+
912## 2.6.2
1013
1114- Changed minimum IDF version to IDF5.1
Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
@@ -271,8 +271,14 @@ static void lvgl_port_task(void *arg)
271271 task_delay_ms = lvgl_port_ctx .task_max_sleep_ms ;
272272 }
273273
274- /* Minimal dealy for the task. When there is too much events, it takes time for other tasks and interrupts. */
274+ /* Minimal delay for the task. When there is too much events, it takes time for other tasks and interrupts. */
275275 vTaskDelay (1 );
276+ /* Adjust delay value returned by lv_timer_handler() accordingly */
277+ if (task_delay_ms >= portTICK_PERIOD_MS ) {
278+ task_delay_ms -= portTICK_PERIOD_MS ;
279+ } else {
280+ task_delay_ms = 0 ;
281+ }
276282 }
277283
278284 /* Give semaphore back */
You can’t perform that action at this time.
0 commit comments