Stop timer auto delete after repeat count

Is there any way to stop the the timer being auto deleted after the repeat count is reached? I’ve wrapped the timer in a C++ class and if the repeat count has been reached and the timer auto-deleted then I don’t want to call lv_timer_del() in the destructor. If it hasn’t been auto deleted then I need to call lv_timer_del(). It would be easier to just know that the timer is still there and I can always call lv_timer_del.

What MCU/Processor/Board and compiler are you using?

windows

What LVGL version are you using?

8.3

What have you tried so far?

Looked at doco.

Can’t you keep track of the no. repeats yourself? Documentation gives no method for not auto-deleting but you may turn off the repeat count (value -1): Timers — LVGL documentation and delete it yourself after x amount of repeats.

Writing code in C++ to replicate a feature that’s already there seems like a hack.