mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 08:20:36 +00:00
fix: update meshcore client ref
ref:
This commit is contained in:
@@ -1043,8 +1043,6 @@ class ConnectionProvider with ChangeNotifier {
|
||||
}) async {
|
||||
final maxChannels = _deviceInfo.maxChannels ?? 40;
|
||||
|
||||
await syncChannels(maxChannels: maxChannels);
|
||||
|
||||
if (getChannelInfo != null) {
|
||||
for (int i = 1; i < maxChannels; 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');
|
||||
}
|
||||
|
||||
|
||||
@@ -795,8 +795,8 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: fbe0803
|
||||
resolved-ref: fbe08032df6a76ebc8339cbcca794a95e976a514
|
||||
ref: de22b38
|
||||
resolved-ref: de22b389bd14641d54908dcd4e94d6a392514d44
|
||||
url: "https://github.com/dz0ny/meshcore_client.git"
|
||||
source: git
|
||||
version: "0.1.0"
|
||||
|
||||
@@ -44,7 +44,7 @@ dependencies:
|
||||
meshcore_client:
|
||||
git:
|
||||
url: https://github.com/dz0ny/meshcore_client.git
|
||||
ref: "fbe0803"
|
||||
ref: "de22b38"
|
||||
|
||||
# Codec2 ultra-low-bitrate speech codec (FFI plugin)
|
||||
codec2_flutter:
|
||||
|
||||
@@ -65,5 +65,22 @@ void main() {
|
||||
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