Skip to content

Commit

Permalink
Adjust random timer
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Jul 29, 2024
1 parent 0f3d23d commit 3043375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESPGeiger/src/Radmon/Radmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void Radmon::s_tick(unsigned long stick_now)
ConfigManager &configManager = ConfigManager::getInstance();
int rtimer = atoi(configManager.getParamValueFromID("radmonTime"));
setInterval(rtimer);
lastPing = random((rtimer*1000)/2);
lastPing = random(rtimer*1000);
return;
}
if (stick_now - lastPing >= pingInterval)
Expand Down

0 comments on commit 3043375

Please sign in to comment.