File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ void GMC::s_tick(unsigned long stick_now)
29
29
if (stick_now - lastPing >= pingInterval)
30
30
{
31
31
if (lastPing == 0 ) {
32
- lastPing = stick_now;
33
- lastPing += random (30 ) * 1000 ;
32
+ lastPing = random (30 ) * 1000 ;
34
33
return ;
35
34
}
36
35
lastPing = stick_now - (stick_now % 1000 );
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ void Radmon::s_tick(unsigned long stick_now)
51
51
rtimer = RADMON_INTERVAL;
52
52
}
53
53
setInterval (rtimer);
54
- lastPing = stick_now;
55
- lastPing += random (30 ) * 1000 ;
54
+ lastPing = random (rtimer / 2 ) * 1000 ;
56
55
return ;
57
56
}
58
57
lastPing = stick_now - (stick_now % 1000 );
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ void Thingspeak::s_tick(unsigned long stick_now)
28
28
if (stick_now - lastPing >= pingInterval)
29
29
{
30
30
if (lastPing == 0 ) {
31
- lastPing = stick_now;
32
- lastPing += random (30 ) * 1000 ;
31
+ lastPing = random (30 ) * 1000 ;
33
32
return ;
34
33
}
35
34
lastPing = stick_now - (stick_now % 1000 );
You can’t perform that action at this time.
0 commit comments