Skip to content

Commit

Permalink
Merge pull request ARMmbed#2051 from ARMmbed/IOTTHD-3415
Browse files Browse the repository at this point in the history
Update Trickle expiration
  • Loading branch information
Arto Kinnunen authored Apr 4, 2019
2 parents 324902d + 142a32a commit 47f65aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Service_Libs/Trickle/trickle.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ bool trickle_timer(trickle_t *t, const trickle_params_t *params, uint16_t ticks)
t->I = params->Imax;
}

if (t->e < UINT8_MAX) {
if (t->e < TRICKLE_EXPIRATIONS_INFINITE - 1) {
t->e++;
}
trickle_begin_interval(t);
Expand Down

0 comments on commit 47f65aa

Please sign in to comment.