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:
parent
1c780fb4dd
commit
0ce57ab68e
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue