From bef17224e4c5cea2748d47ca0446574788a8607d Mon Sep 17 00:00:00 2001 From: manison Date: Fri, 8 Mar 2019 14:11:13 +0100 Subject: [PATCH] fix some typos --- lv_conf_templ.h | 2 +- lv_core/lv_indev.c | 8 ++++---- lv_hal/lv_hal_indev.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lv_conf_templ.h b/lv_conf_templ.h index 199f81087..ef1ab71d3 100644 --- a/lv_conf_templ.h +++ b/lv_conf_templ.h @@ -185,7 +185,7 @@ typedef void * lv_indev_drv_user_data_t; /*Type of user data in t * LV_OBJ SETTINGS *==================*/ typedef void * lv_obj_user_data_t; /*Declare the type of the user data of object (can be e.g. `void *`, `int`, `struct`)*/ -#define LV_OBJ_REALIGN 0 /*Enable `lv_obj_realaign()` based on `lv_obj_align()` parameters*/ +#define LV_OBJ_REALIGN 0 /*Enable `lv_obj_realign()` based on `lv_obj_align()` parameters*/ /*================== * LV OBJ X USAGE diff --git a/lv_core/lv_indev.c b/lv_core/lv_indev.c index 76a302fb2..1cf672d6e 100644 --- a/lv_core/lv_indev.c +++ b/lv_core/lv_indev.c @@ -285,7 +285,7 @@ lv_indev_feedback_t lv_indev_get_feedback(const lv_indev_t *indev) */ void lv_indev_wait_release(lv_indev_t * indev) { - indev->proc.types.pointer.wait_unil_release = 1; + indev->proc.types.pointer.wait_until_release = 1; } /********************** @@ -644,7 +644,7 @@ static void indev_proc_press(lv_indev_proc_t * proc) { lv_obj_t * pr_obj = proc->types.pointer.act_obj; - if(proc->types.pointer.wait_unil_release != 0) return; + if(proc->types.pointer.wait_until_release != 0) return; lv_disp_t * disp = indev_act->driver.disp; @@ -777,12 +777,12 @@ static void indev_proc_press(lv_indev_proc_t * proc) */ static void indev_proc_release(lv_indev_proc_t * proc) { - if(proc->types.pointer.wait_unil_release != 0) { + if(proc->types.pointer.wait_until_release != 0) { proc->types.pointer.act_obj = NULL; proc->types.pointer.last_obj = NULL; proc->pr_timestamp = 0; proc->longpr_rep_timestamp = 0; - proc->types.pointer.wait_unil_release = 0; + proc->types.pointer.wait_until_release = 0; } /*Forget the act obj and send a released signal */ diff --git a/lv_hal/lv_hal_indev.h b/lv_hal/lv_hal_indev.h index 68e279982..9d224948a 100644 --- a/lv_hal/lv_hal_indev.h +++ b/lv_hal/lv_hal_indev.h @@ -99,7 +99,7 @@ typedef struct _lv_indev_proc_t { /*Flags*/ uint8_t drag_limit_out :1; uint8_t drag_in_prog :1; - uint8_t wait_unil_release :1; + uint8_t wait_until_release :1; }pointer; struct { /*Keypad data*/ lv_indev_state_t last_state;