Skip to content
Commit a2ddf99f authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Johan Hedberg
Browse files

Bluetooth: Mesh: fix next_period computation



If the duration to publish is roughly the same as the period, we might
end up with elapsed == period, which returns 0 and cancel the periodic
publication. Instead 1 should be returned, just like when the elapsed
time is greater than the period.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent cdb6332a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment