Related to App_easy_timer

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
alan.a
Offline
Last seen:2 years 5 months ago
加入:2018-10-31 07:50
Related to App_easy_timer

Hii....
i have some doubt in app easy timer. i implement an app easy timer of 1 minute and also wait some flags triggering in my application which is in while loop of arch_main() when i do this in my application app easy timer drift second's(ie is not work properly) why this happening?
if i am not waiting flags in main app easy timer works fine. i need a help. why this happening

Device:
PM_Dialog
Offline
Last seen:4 days 8 hours ago
Staff
加入:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

对不起但是我不能够听懂你我an, your description is quite generic, can you please clarify your question? Do you mean that when the timer expired, the registered callback is not executed since the flags are not activated ? And the callback is triggered after 1 second?

Thanks, PM_Dialog

alan.a
Offline
Last seen:2 years 5 months ago
加入:2018-10-31 07:50
Thanks for your reply,

Thanks for your reply,
when i start app easy timer. if i wait for some flags in main function timer not properly provide delay for example:-
start timer:- app_easy_timer(100,update_timer); in main function
after that i wait for a flag using while loop:- while(app_flag ); this app_flag is waiting for some application process complete.(its also in main function)
inside the call back again start timer:-app_easy_timer(100,update_timer);(for restart timer)
here the problem is app_easy_timer not properly triggered
if i remove while(app_flag ); from main function its works fine why app easy timer not properly trigger when application is wait for something?

PM_Dialog
Offline
Last seen:4 days 8 hours ago
Staff
加入:2018-02-08 11:03
Hi alan.a,

Hi alan.a,

According to your description, I suppose that timer is not triggered due to your software implementation and it is not an issue from the side of the app_easy_timer(). If I understood correctly, the applications callback function in which you have placed the timers waits the app_flag? Can you please the timer somewhere else?

Thanks, PM_Dialog