mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-03 20:38:41 +00:00
Fixed comment
This commit is contained in:
parent
85f46d3231
commit
ea7da3178b
@ -177,8 +177,8 @@ int32_t PositionModule::runOnce()
|
|||||||
// Yes, this has a bunch of magic numbers. Sorry.
|
// Yes, this has a bunch of magic numbers. Sorry.
|
||||||
uint32_t timeTravel =
|
uint32_t timeTravel =
|
||||||
((1500 / myNodeInfo.bitrate) >= timeTravelMinimum) ? (1500 / myNodeInfo.bitrate) : timeTravelMinimum;
|
((1500 / myNodeInfo.bitrate) >= timeTravelMinimum) ? (1500 / myNodeInfo.bitrate) : timeTravelMinimum;
|
||||||
// If the distance traveled since the last update is greater than 100 meters
|
// If the distance traveled since the last update is greater than distanceTravelMinimum meters
|
||||||
// and it's been at least 60 seconds since the last update
|
// and it's been at least timeTravelMinimum seconds since the last update
|
||||||
if ((abs(distance) >= distanceTravelThreshold) && (now - lastGpsSend) >= (timeTravel * 1000)) {
|
if ((abs(distance) >= distanceTravelThreshold) && (now - lastGpsSend) >= (timeTravel * 1000)) {
|
||||||
bool requestReplies = currentGeneration != radioGeneration;
|
bool requestReplies = currentGeneration != radioGeneration;
|
||||||
currentGeneration = radioGeneration;
|
currentGeneration = radioGeneration;
|
||||||
|
Loading…
Reference in New Issue
Block a user