1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #15402 from btcven/2020_11_08-lvgl-fix

tests/pkg_lvgl: fix sysmon task creation
This commit is contained in:
Alexandre Abadie 2020-11-08 16:14:27 +01:00 committed by GitHub
commit 6915fec2ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,7 @@ LittlevGL sample application
This application shows a basic usage of LittlevGL with RIOT. It's simply an
adaption of one of the upstream examples: the
[sysmon example](https://github.com/littlevgl/lv_examples/tree/master/lv_apps/sysmon).
[sysmon example](https://github.com/lvgl/lv_apps/tree/master/src/lv_sysmon).
### Flashing the application

View File

@ -90,8 +90,6 @@ static void sysmon_task(lv_task_t *param)
void sysmon_create(void)
{
refr_task = lv_task_create(sysmon_task, REFR_TIME, LV_TASK_PRIO_LOW, NULL);
lv_coord_t hres = lv_disp_get_hor_res(NULL);
lv_coord_t vres = lv_disp_get_ver_res(NULL);
@ -123,6 +121,7 @@ void sysmon_create(void)
lv_label_set_recolor(info_label, true);
/* Refresh the chart and label manually at first */
refr_task = lv_task_create(sysmon_task, REFR_TIME, LV_TASK_PRIO_LOW, NULL);
sysmon_task(NULL);
}