Subversion Repositories HomeAutomation

Rev

Rev 1601 | Rev 1646 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1601 Rev 1607
Line 33... Line 33...
33
 
33
 
34
function Timer_OnTimeout(timer_id, repeat)
34
function Timer_OnTimeout(timer_id, repeat)
35
{
35
{
36
    if (timer_callbacks[timer_id])
36
    if (timer_callbacks[timer_id])
37
    {
37
    {
38
        timer_callbacks[timer_id]();
38
        timer_callbacks[timer_id](timer_id);
39
       
39
       
40
        if (!repeat)
40
        if (!repeat)
41
        {
41
        {
42
            delete timer_callbacks[timer_id];
42
            delete timer_callbacks[timer_id];
43
        }
43
        }