-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Update spi_lcd_touch_example_main.c (IDFGH-14199) #14997
base: master
Are you sure you want to change the base?
Conversation
Set uint32_t to int32_t. If lv_timer_handler() is called too fast, returns -1. If time_till_next_ms is unsigned, it becomes 0xFFFFFF... (very large). Therefore it overrides the threshold and code locks in usleep().
|
👋 Hello ostifede02, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
@ostifede02 Hi, I'm sure the function returns the uint32_t type. https://github.com/lvgl/lvgl/blob/c9d35e1038060d07555903707da91e3ce49672f7/src/misc/lv_timer.h#L53 |
Description
Set uint32_t to int32_t. If lv_timer_handler() is called too fast, returns -1. If time_till_next_ms is unsigned, it becomes 0xFFFFFF... (very large). Therefore it overrides the threshold and code locks in usleep().