src/timer.c
changeset 149 fe50ada8020b
parent 71 95cd3376cc9f
child 167 b2f8b91d89b5
equal deleted inserted replaced
148:ad3de8730172 149:fe50ada8020b
   157 		s_timer_entry *row = (timers+i);
   157 		s_timer_entry *row = (timers+i);
   158 
   158 
   159 		if (row->state & TIMER_TRIG)
   159 		if (row->state & TIMER_TRIG)
   160 		{
   160 		{
   161 			row->state &= ~TIMER_TRIG; /* reset trig state (will be free if not periodic) */
   161 			row->state &= ~TIMER_TRIG; /* reset trig state (will be free if not periodic) */
   162 			(*row->callback)(row->d, row->id); /* trig ! */
   162 			if(row->callback)
       
   163 				(*row->callback)(row->d, row->id); /* trig ! */
   163 		}
   164 		}
   164 	}
   165 	}
   165 }
   166 }
   166 
   167