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:
commit
6915fec2ca
@ -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
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user