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