Browse Source

modules: lvgl: fix of too few arguments of cpu_load_get

Fixes building an lvgl sample with CONFIG_CPU_LOAD enabled.
cpu_load_get function requires 1 argument.

Signed-off-by: Matthias Alleman <matthias.alleman@basalte.be>
pull/91527/head
Matthias Alleman 4 weeks ago committed by Dan Kalowsky
parent
commit
0ce57ab68e
  1. 2
      modules/lvgl/lvgl_zephyr_osal.c

2
modules/lvgl/lvgl_zephyr_osal.c

@ -161,7 +161,7 @@ void thread_entry(void *thread, void *cb, void *user_data) @@ -161,7 +161,7 @@ void thread_entry(void *thread, void *cb, void *user_data)
uint32_t lv_os_get_idle_percent(void)
{
#ifdef CONFIG_CPU_LOAD
int load = cpu_load_get();
int load = cpu_load_get(true);
if (load < 0) {
LOG_ERR("Failed to get CPU load, returning UINT32_MAX");

Loading…
Cancel
Save