Skip to content

Commit

Permalink
esp_lvgl_port: Fix bad condition in port deinit
Browse files Browse the repository at this point in the history
The if-condition should check if the task *is* running, and if so
then set the variable to false.
  • Loading branch information
cdollar393 authored and espzav committed Jan 15, 2024
1 parent 1a1bd4b commit 1fa23e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_lvgl_port/esp_lvgl_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ esp_err_t lvgl_port_deinit(void)
}

/* Stop running task */
if (!lvgl_port_ctx.running) {
if (lvgl_port_ctx.running) {
lvgl_port_ctx.running = false;
} else {
lvgl_port_task_deinit();
Expand Down

0 comments on commit 1fa23e3

Please sign in to comment.