fix warnings and make tests working
This commit is contained in:
@@ -45,6 +45,7 @@ static void event_cb(lv_obj_t * obj, lv_event_t e)
|
||||
|
||||
static void add_data(lv_timer_t * timer)
|
||||
{
|
||||
LV_UNUSED(timer);
|
||||
static uint32_t cnt = 0;
|
||||
lv_chart_set_next_value(chart1, ser1, lv_rand(20, 90));
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
static void event_cb(lv_obj_t * chart, lv_event_t e)
|
||||
{
|
||||
LV_UNUSED(chart);
|
||||
if(e == LV_EVENT_DRAW_PART_BEGIN) {
|
||||
lv_obj_draw_hook_dsc_t * hook_dsc = lv_event_get_param();
|
||||
if(hook_dsc->part == LV_PART_MARKER && hook_dsc->sub_part_id == LV_CHART_AXIS_X) {
|
||||
|
||||
Reference in New Issue
Block a user