Skip to content

Commit

Permalink
Fix bug in Low Power Timer Driver
Browse files Browse the repository at this point in the history
  • Loading branch information
samkumar committed Sep 18, 2015
1 parent 4d7cb26 commit b6c3c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/Kernel/LowPowerTimerDriverP.nc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ implementation

void enqueue_cb(uint16_t idx)
{
if ((cb_widx + 1) & (CBQUEUESIZE-1) == cb_ridx)
if (((cb_widx + 1) & (CBQUEUESIZE - 1)) == cb_ridx)
return; //drop
callback_queue[cb_widx] = timer_buffer[idx].cb;
cb_widx = (cb_widx+1) & (CBQUEUESIZE-1);
Expand Down Expand Up @@ -188,4 +188,4 @@ implementation
post update_queues();
}

}
}

0 comments on commit b6c3c94

Please sign in to comment.