1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Fix initialisation problem.

Found that new structure parmaeter ext_buf_assigned needs to be
initialised to false in lv_chart_add_series() as sometimes is set true
depending on what was previously in the heap where it was allocated.
This commit is contained in:
pete-pjb 2020-06-16 18:04:36 +01:00
parent ad215c5b4b
commit ae748cfffa

View File

@ -191,6 +191,7 @@ lv_chart_series_t * lv_chart_add_series(lv_obj_t * chart, lv_color_t color)
}
ser->start_point = 0;
ser->ext_buf_assigned = false;
uint16_t i;
lv_coord_t * p_tmp = ser->points;