mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lmeter: fix uninitialized 'mirror' property
This commit is contained in:
parent
03c3838605
commit
4613811c45
@ -653,7 +653,7 @@ typedef void * lv_obj_user_data_t;
|
|||||||
* 1: Some extra precision
|
* 1: Some extra precision
|
||||||
* 2: Best precision
|
* 2: Best precision
|
||||||
*/
|
*/
|
||||||
# define LV_LINEMETER_PRECISE 0
|
# define LV_LINEMETER_PRECISE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*Mask (dependencies: -)*/
|
/*Mask (dependencies: -)*/
|
||||||
|
@ -76,6 +76,7 @@ lv_obj_t * lv_linemeter_create(lv_obj_t * par, const lv_obj_t * copy)
|
|||||||
ext->line_cnt = 18;
|
ext->line_cnt = 18;
|
||||||
ext->scale_angle = 240;
|
ext->scale_angle = 240;
|
||||||
ext->angle_ofs = 0;
|
ext->angle_ofs = 0;
|
||||||
|
ext->mirrored = 0;
|
||||||
|
|
||||||
/*The signal and design functions are not copied so set them here*/
|
/*The signal and design functions are not copied so set them here*/
|
||||||
lv_obj_set_signal_cb(linemeter, lv_linemeter_signal);
|
lv_obj_set_signal_cb(linemeter, lv_linemeter_signal);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user