chore: Linter fixes for USB serial transport

This commit is contained in:
Janez T
2026-03-17 14:43:47 +01:00
parent 095458ece4
commit 87cb890877
5 changed files with 3 additions and 4 deletions

View File

@@ -758,6 +758,7 @@ class _UsbDeviceListState extends State<_UsbDeviceList> {
widget.onConnected();
} else {
await port.close();
if (!mounted) return;
setState(() => _isConnecting = false);
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('Failed to connect via USB')),