Skip to content

Commit 47f65aa

Browse files
author
Arto Kinnunen
authored
Merge pull request #2051 from ARMmbed/IOTTHD-3415
Update Trickle expiration
2 parents 324902d + 142a32a commit 47f65aa

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)