mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-17 06:10:47 +10:00
Update ML timeout handling and adjust distance threshold for path hops
This commit is contained in:
committed by
Enot (ded) Skelly
parent
4879b136f8
commit
26516baf67
@@ -3903,7 +3903,9 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
if (mlTimeout != null) {
|
||||
if (pathLength < 0) {
|
||||
// Flood: trust ML, only enforce firmware formula as floor
|
||||
return mlTimeout.clamp(physicsMin, mlTimeout);
|
||||
if (mlTimeout < physicsMin) {
|
||||
return physicsMin;
|
||||
}
|
||||
}
|
||||
return mlTimeout.clamp(physicsMin, physicsMax);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user