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>
This commit is contained in:
Matthias Alleman 2025-06-12 12:09:11 +02:00 committed by Dan Kalowsky
commit 0ce57ab68e

View file

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