Enhance message merging logic and improve USB port listing

This commit is contained in:
just-stuff-tm
2026-03-06 20:38:03 -05:00
parent ab2b509d6a
commit 0565cee461
2 changed files with 16 additions and 9 deletions
+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({