1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Merge pull request #560 from kisvegabor/indev_data_init

lv_indev: init data before calling of indev_read
This commit is contained in:
Gabor Kiss-Vamosi 2018-11-22 11:46:24 +01:00 committed by GitHub
commit b8009d7c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,8 @@ bool lv_indev_read(lv_indev_t * indev, lv_indev_data_t * data)
bool cont = false; bool cont = false;
if(indev->driver.read) { if(indev->driver.read) {
memset(data, 0, sizeof(data));
data->state = LV_INDEV_STATE_REL;
data->user_data = indev->driver.user_data; data->user_data = indev->driver.user_data;
LV_LOG_TRACE("idnev read started"); LV_LOG_TRACE("idnev read started");