/* Execute task if its the priority is appropriate  */
static bool lv_task_exec(lv_task_t *lv_task_p)
/* Execute task if its the priority is appropriate  */
static bool lv_task_exec(lv_task_t *lv_task_p)
{
    bool exec = false;
    uint32_t elp = lv_tick_elaps(lv_task_p->last_run);
    if(elp >= lv_task_p->period) {
        lv_task_p->last_run = lv_tick_get();
        lv_task_p->task(lv_task_p->param);
        if(lv_task_p->once != 0) lv_task_del(lv_task_p);
        exec = true;
    }
    return exec;
}