mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Obob bug spotted by nfi.
This commit is contained in:
parent
a05f9acab4
commit
157ee59ff5
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: clock.c,v 1.3 2006/08/17 15:41:13 bg- Exp $
|
||||
* @(#)$Id: clock.c,v 1.4 2006/08/25 09:40:21 bg- Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -54,7 +54,7 @@ interrupt(TIMERA1_VECTOR) timera1 (void) {
|
||||
++count;
|
||||
|
||||
if(etimer_pending()
|
||||
&& (etimer_next_expiration_time() - count) >= MAX_TICKS) {
|
||||
&& (etimer_next_expiration_time() - count - 1) > MAX_TICKS) {
|
||||
etimer_request_poll();
|
||||
LPM4_EXIT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user