We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcfd8b commit ea8d506Copy full SHA for ea8d506
lib/communication/handler/desktop_comms_handler.dart
@@ -61,7 +61,10 @@ class DesktopUSBCommunicationHandler implements CommunicationHandler {
61
throw Exception("Device not connected");
62
}
63
UsbSerialDevice.setAutoDetachKernelDriver(true);
64
- await mDevice?.open();
+ if (await mDevice?.open() == false) {
65
+ logger.e("Failed to open device");
66
+ return;
67
+ }
68
await mDevice?.setBaudRate(1000000);
69
await mDevice?.setDataBits(UsbSerialInterface.dataBits8);
70
await mDevice?.setStopBits(UsbSerialInterface.stopBits1);
0 commit comments