Enhance message merging logic and improve USB port listing
This commit is contained in:
1 parent
ab2b509d6a
commit
0565cee461
2 files changed
+16
-9
No files matched your search
@@ -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