1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/pkg/lvgl: avoid using floats

This commit is contained in:
Marian Buschsieweke 2023-05-31 22:31:28 +02:00
parent 784692e64a
commit 63ca70a564
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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);