mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-23 09:11:06 +10:00
rollback-pr review
This commit is contained in:
@@ -11,7 +11,6 @@ import 'package:provider/provider.dart';
|
|||||||
|
|
||||||
import '../connector/meshcore_connector.dart';
|
import '../connector/meshcore_connector.dart';
|
||||||
import '../connector/meshcore_protocol.dart';
|
import '../connector/meshcore_protocol.dart';
|
||||||
import '../helpers/path_helper.dart';
|
|
||||||
import '../l10n/l10n.dart';
|
import '../l10n/l10n.dart';
|
||||||
import '../models/app_settings.dart';
|
import '../models/app_settings.dart';
|
||||||
import '../models/channel.dart';
|
import '../models/channel.dart';
|
||||||
@@ -722,10 +721,7 @@ class _MapScreenState extends State<MapScreen> {
|
|||||||
];
|
];
|
||||||
for (final pathBytes in pathSets) {
|
for (final pathBytes in pathSets) {
|
||||||
if (pathBytes.isEmpty) continue;
|
if (pathBytes.isEmpty) continue;
|
||||||
final hopWidth = PathHelper.detectPathHashWidth(
|
final hopWidth = pathHashByteWidth.clamp(1, 4);
|
||||||
pathBytes,
|
|
||||||
fallback: pathHashByteWidth,
|
|
||||||
);
|
|
||||||
final lastHop = pathBytes.sublist(max(0, pathBytes.length - hopWidth));
|
final lastHop = pathBytes.sublist(max(0, pathBytes.length - hopWidth));
|
||||||
if (lastHop.isEmpty) continue;
|
if (lastHop.isEmpty) continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user