Enhance message merging logic and improve USB port listing

This commit is contained in:
just-stuff-tm committed 2026-03-06 20:38:03 -05:00
1 parent ab2b509d6a
commit 0565cee461
2 files changed
+16 -9

No files matched your search

+1 -4
View File
@@ -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({