[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420/lpl DefaultLplP.nc, 1.5, 1.6
akoepke
andreaskoepke at users.sourceforge.net
Wed Dec 17 09:42:24 PST 2008
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/tosthreads/system BlockingSend.nc, NONE, 1.1 BlockingSendC.nc, NONE, 1.1 BlockingSendImplP.nc, NONE, 1.1 BlockingSendP.nc, NONE, 1.1
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/python tos.py, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/lpl
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30848
Modified Files:
DefaultLplP.nc
Log Message:
avoid integer overflow
Index: DefaultLplP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/lpl/DefaultLplP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DefaultLplP.nc 14 May 2008 21:33:07 -0000 1.5
--- DefaultLplP.nc 17 Dec 2008 17:42:22 -0000 1.6
***************
*** 231,235 ****
}
! return (DUTY_ON_TIME * (10000 - dutyCycle)) / dutyCycle;
}
--- 231,235 ----
}
! return ((uint32_t)DUTY_ON_TIME * (10000 - dutyCycle)) / dutyCycle;
}
***************
*** 246,250 ****
}
! return getActualDutyCycle((DUTY_ON_TIME * 10000)
/ (sleepInterval + DUTY_ON_TIME));
}
--- 246,250 ----
}
! return getActualDutyCycle(((uint32_t)DUTY_ON_TIME * 10000)
/ (sleepInterval + DUTY_ON_TIME));
}
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/tosthreads/system BlockingSend.nc, NONE, 1.1 BlockingSendC.nc, NONE, 1.1 BlockingSendImplP.nc, NONE, 1.1 BlockingSendP.nc, NONE, 1.1
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/support/sdk/python tos.py, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list