Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ob) add lv_is_initialized #2402

Merged
merged 1 commit into from Jul 24, 2021
Merged

Conversation

amirgon
Copy link
Contributor

@amirgon amirgon commented Jul 23, 2021

Added lv_is_initialized to indicate whether LVGL was initialized

While it's possible to try initialize LVGL after it is already initialized, it warns 'lv_init: already inited' in such case. Therefore it is useful to be able to check on runtime whether LVGL was initialized or not before calling lv_init().

Also useful for making sure LVGL was initialized before trying to register a display driver

Added lv_is_initialized to indicate whether LVGL was initialized

While it's possible to try initialize LVGL after it is already initialized, it warns 'lv_init: already inited' in such case. Therefore it is useful to be able to check on runtime whether LVGL was initialized or not before calling lv_init().

Also useful for making sure LVGL was initialized before trying to register a display driver
@embeddedt embeddedt merged commit 4db0071 into lvgl:master Jul 24, 2021
@embeddedt
Copy link
Member

Thanks! This is useful in a lot of different scenarios.

@amirgon amirgon deleted the feat/is_initialized branch July 24, 2021 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants