place some lv_log_add calls
This commit is contained in:
@@ -111,8 +111,17 @@ bool lv_indev_read(lv_indev_t * indev, lv_indev_data_t * data)
|
||||
|
||||
if(indev->driver.read) {
|
||||
data->user_data = indev->driver.user_data;
|
||||
#if USE_LV_LOG
|
||||
lv_log_add(LV_LOG_LEVEL_TRACE, __FILE__, __LINE__, "Indev read called");
|
||||
#endif
|
||||
cont = indev->driver.read(data);
|
||||
#if USE_LV_LOG
|
||||
lv_log_add(LV_LOG_LEVEL_TRACE, __FILE__, __LINE__, "Indev read finished");
|
||||
#endif
|
||||
} else {
|
||||
#if USE_LV_LOG
|
||||
lv_log_add(LV_LOG_LEVEL_WARN, __FILE__, __LINE__, "Indev read: function not set");
|
||||
#endif
|
||||
memset(data, 0, sizeof(lv_indev_data_t));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user