Update ML timeout handling and adjust distance threshold for path hops

This commit is contained in:
Winston Lowe
2026-03-31 18:55:22 -07:00
parent 77566b0fe1
commit 36d4a10396
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -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);
}