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 d0e3767db6
commit 817c60a155
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -3753,7 +3753,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);
}