expose mode 3 in UI

This commit is contained in:
PacoX
2026-05-20 08:50:17 +02:00
parent 01d4f002f8
commit 945a118853
24 changed files with 369 additions and 5 deletions
+1 -1
View File
@@ -2588,7 +2588,7 @@ class MeshCoreConnector extends ChangeNotifier {
Future<void> setPathHashMode(int mode) async {
if (!isConnected) return;
final clampedMode = mode.clamp(0, 2).toInt();
final clampedMode = mode.clamp(0, 3).toInt();
await sendFrame(buildSetPathHashModeFrame(clampedMode));
final nextWidth = clampedMode + 1;
if (_pathHashByteWidth != nextWidth) {
+2 -2
View File
@@ -566,9 +566,9 @@ Uint8List buildGetStatsFrame(int statsType) {
return Uint8List.fromList([cmdGetStats, statsType & 0xFF]);
}
/// Path hash width on air: [61][0][mode], mode 0..2 (mode+1) bytes per hop hash.
/// Path hash width on air: [61][0][mode], mode 0..3 (mode+1) bytes per hop hash.
Uint8List buildSetPathHashModeFrame(int mode) {
final m = mode.clamp(0, 2);
final m = mode.clamp(0, 3).toInt();
return Uint8List.fromList([cmdSetPathHashMode, 0, m]);
}