mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-18 08:26:27 +10:00
Enhance message merging logic and improve USB port listing
This commit is contained in:
@@ -57,10 +57,7 @@ class UsbSerialService {
|
||||
|
||||
_resetPortCache();
|
||||
final ports = await _getAuthorizedPorts();
|
||||
if (ports.isEmpty) {
|
||||
return <String>[_requestPortListEntry];
|
||||
}
|
||||
return ports.map(_listEntryForPort).toList(growable: false);
|
||||
return <String>[_requestPortListEntry, ...ports.map(_listEntryForPort)];
|
||||
}
|
||||
|
||||
Future<void> connect({
|
||||
|
||||
Reference in New Issue
Block a user