mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
Turn off timer before updating - needed to avoid bugs in ContikiMAC - not 100% sure why
This commit is contained in:
parent
f49ebfe1c4
commit
953a8c2015
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rtimer-arch.c,v 1.13 2010/01/30 14:03:35 adamdunkels Exp $
|
||||
* $Id: rtimer-arch.c,v 1.14 2010/02/18 22:15:54 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -82,6 +82,8 @@ rtimer_arch_schedule(rtimer_clock_t t)
|
||||
{
|
||||
PRINTF("rtimer_arch_schedule time %u\n", t);
|
||||
|
||||
TACTL &= ~MC1;
|
||||
TACCR0 = t;
|
||||
TACTL |= MC1;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user