diff --git a/sys/net/routing/rpl/trickle.c b/sys/net/routing/rpl/trickle.c index ff08ac8f643472fa2bf0ecd1bebc5e1c74c1a5e3..6ecc7a07c5d0f4ac7f942cc93b131cad5693dfb5 100644 --- a/sys/net/routing/rpl/trickle.c +++ b/sys/net/routing/rpl/trickle.c @@ -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 ) ); */