Skip to content

Commit 142a32a

Browse files
kjbraceyArto Kinnunen
authored andcommitted
Update Trickle expiration
Update Trickle timer based on suggestion in https://github.com/ARMmbed/sal-stack-nanostack-private/issues/2049
1 parent 924acad commit 142a32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Service_Libs/Trickle/trickle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool trickle_timer(trickle_t *t, const trickle_params_t *params, uint16_t ticks)
119119
t->I = params->Imax;
120120
}
121121

122-
if (t->e < UINT8_MAX) {
122+
if (t->e < TRICKLE_EXPIRATIONS_INFINITE - 1) {
123123
t->e++;
124124
}
125125
trickle_begin_interval(t);

0 commit comments

Comments
 (0)