Fix stupid assumption that caused headache.
Timers lib now seems to work fine again.
This commit is contained in:
		
							parent
							
								
									83f0f501f8
								
							
						
					
					
						commit
						7f2e7461e6
					
				| @ -21,9 +21,8 @@ clock_t *new_head;			/* new earliest timer, if non NULL */ | ||||
|   if(*tmrs) | ||||
|   	old_head = (*tmrs)->tmr_exp_time; | ||||
| 
 | ||||
|   /* Possibly remove an old timer. Then set the timer's variables. */ | ||||
|   if (tp->tmr_exp_time != TMR_NEVER) | ||||
|   	(void) tmrs_clrtimer(tmrs, tp, NULL); | ||||
|   /* Set the timer's variables. */ | ||||
|   (void) tmrs_clrtimer(tmrs, tp, NULL); | ||||
|   tp->tmr_exp_time = exp_time; | ||||
|   tp->tmr_func = watchdog; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jorrit Herder
						Jorrit Herder