Skip to content

Commit 1fa23e3

Browse files
cdollar393espzav
authored andcommitted
esp_lvgl_port: Fix bad condition in port deinit
The if-condition should check if the task *is* running, and if so then set the variable to false.
1 parent 1a1bd4b commit 1fa23e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_lvgl_port/esp_lvgl_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ esp_err_t lvgl_port_deinit(void)
237237
}
238238

239239
/* Stop running task */
240-
if (!lvgl_port_ctx.running) {
240+
if (lvgl_port_ctx.running) {
241241
lvgl_port_ctx.running = false;
242242
} else {
243243
lvgl_port_task_deinit();

0 commit comments

Comments
 (0)