Skip to content

Commit 0ce57ab

Browse files
allemanmdkalowsk
authored andcommitted
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>
1 parent 1c780fb commit 0ce57ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/lvgl/lvgl_zephyr_osal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void thread_entry(void *thread, void *cb, void *user_data)
161161
uint32_t lv_os_get_idle_percent(void)
162162
{
163163
#ifdef CONFIG_CPU_LOAD
164-
int load = cpu_load_get();
164+
int load = cpu_load_get(true);
165165

166166
if (load < 0) {
167167
LOG_ERR("Failed to get CPU load, returning UINT32_MAX");

0 commit comments

Comments
 (0)