From 63ca70a564ab87a43864229478fcb5850ecfcb30 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Wed, 31 May 2023 22:31:28 +0200 Subject: [PATCH] tests/pkg/lvgl: avoid using floats --- tests/pkg/lvgl/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pkg/lvgl/main.c b/tests/pkg/lvgl/main.c index d1c8130fdf..00387ab720 100644 --- a/tests/pkg/lvgl/main.c +++ b/tests/pkg/lvgl/main.c @@ -92,7 +92,7 @@ void sysmon_create(void) /* Create a chart with two data lines */ chart = lv_chart_create(cont); - lv_obj_set_size(chart, hres / 2.5, vres / 2); + lv_obj_set_size(chart, hres * 10L / 25, vres / 2); lv_obj_set_pos(chart, LV_DPI_DEF / 10, LV_DPI_DEF / 10); lv_chart_set_point_count(chart, CHART_POINT_NUM); lv_chart_set_range(chart, LV_CHART_AXIS_PRIMARY_Y, 0, 100);