mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-29 21:50:32 +10:00
Update ML timeout handling and adjust distance threshold for path hops
This commit is contained in:
@@ -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