add HashMode Setting
This commit is contained in:
1 parent
28a5913ba3
commit
73e5b80232
2 files changed
+92
-1
No files matched your search
@@ -2571,7 +2571,14 @@ class MeshCoreConnector extends ChangeNotifier {
|
||||
|
||||
Future<void> setPathHashMode(int mode) async {
|
||||
if (!isConnected) return;
|
||||
await sendFrame(buildSetPathHashModeFrame(mode.clamp(0, 2)));
|
||||
final clampedMode = mode.clamp(0, 2).toInt();
|
||||
await sendFrame(buildSetPathHashModeFrame(clampedMode));
|
||||
final nextWidth = clampedMode + 1;
|
||||
if (_pathHashByteWidth != nextWidth) {
|
||||
_pathHashByteWidth = nextWidth;
|
||||
_directRepeaters.clear();
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> refreshDeviceInfo() async {
|
||||
|
||||
Reference in new issue
Block a user