Skip to content
Snippets Groups Projects
Commit caa947dc authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #523 from mehlis/trickle

trickle: replace call to pow (base of 2)
parents 41fca84c 348971e4
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ void start_trickle(uint8_t DIOIntMin, uint8_t DIOIntDoubl,
{
c = 0;
k = DIORedundancyConstant;
Imin = pow(2, DIOIntMin);
Imin = (1 << DIOIntMin);
Imax = DIOIntDoubl;
/* Eigentlich laut Spezifikation erste Bestimmung von I wie auskommentiert: */
/* I = Imin + ( rand() % ( (Imin << Imax) - Imin + 1 ) ); */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment