mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
fix: update meshcore client ref
ref:
This commit is contained in:
@@ -1043,8 +1043,6 @@ class ConnectionProvider with ChangeNotifier {
|
|||||||
}) async {
|
}) async {
|
||||||
final maxChannels = _deviceInfo.maxChannels ?? 40;
|
final maxChannels = _deviceInfo.maxChannels ?? 40;
|
||||||
|
|
||||||
await syncChannels(maxChannels: maxChannels);
|
|
||||||
|
|
||||||
if (getChannelInfo != null) {
|
if (getChannelInfo != null) {
|
||||||
for (int i = 1; i < maxChannels; i++) {
|
for (int i = 1; i < maxChannels; i++) {
|
||||||
final channel = getChannelInfo!(i);
|
final channel = getChannelInfo!(i);
|
||||||
@@ -1104,8 +1102,6 @@ class ConnectionProvider with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await syncChannels(maxChannels: maxChannels);
|
|
||||||
|
|
||||||
debugPrint('✅ [Provider] Channel created successfully in slot $slotIdx');
|
debugPrint('✅ [Provider] Channel created successfully in slot $slotIdx');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -795,8 +795,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: fbe0803
|
ref: de22b38
|
||||||
resolved-ref: fbe08032df6a76ebc8339cbcca794a95e976a514
|
resolved-ref: de22b389bd14641d54908dcd4e94d6a392514d44
|
||||||
url: "https://github.com/dz0ny/meshcore_client.git"
|
url: "https://github.com/dz0ny/meshcore_client.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.0"
|
version: "0.1.0"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ dependencies:
|
|||||||
meshcore_client:
|
meshcore_client:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/dz0ny/meshcore_client.git
|
url: https://github.com/dz0ny/meshcore_client.git
|
||||||
ref: "fbe0803"
|
ref: "de22b38"
|
||||||
|
|
||||||
# Codec2 ultra-low-bitrate speech codec (FFI plugin)
|
# Codec2 ultra-low-bitrate speech codec (FFI plugin)
|
||||||
codec2_flutter:
|
codec2_flutter:
|
||||||
|
|||||||
@@ -65,5 +65,22 @@ void main() {
|
|||||||
isNull,
|
isNull,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('private channels with same name do not block slot selection', () {
|
||||||
|
expect(
|
||||||
|
ConnectionProvider.isDuplicateChannelName(
|
||||||
|
requestedName: 'RPT_admins',
|
||||||
|
existingName: 'RPT_admins',
|
||||||
|
),
|
||||||
|
isFalse,
|
||||||
|
);
|
||||||
|
expect(
|
||||||
|
ConnectionProvider.firstAvailableChannelSlot(
|
||||||
|
occupiedIndices: {1, 2, 3},
|
||||||
|
maxChannels: 6,
|
||||||
|
),
|
||||||
|
4,
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user