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 816c372 commit e629d08Copy full SHA for e629d08
windows/QMK Toolbox/MainWindow.cs
@@ -12,6 +12,7 @@
12
using System.IO;
13
using System.Linq;
14
using System.Net.Http;
15
+using System.Runtime.InteropServices;
16
using System.Windows.Forms;
17
18
namespace QMK_Toolbox
@@ -81,7 +82,16 @@ private void MainWindow_Load(object sender, EventArgs e)
81
82
usbListener.bootloaderDeviceConnected += BootloaderDeviceConnected;
83
usbListener.bootloaderDeviceDisconnected += BootloaderDeviceDisconnected;
84
usbListener.outputReceived += BootloaderCommandOutputReceived;
- usbListener.Start();
85
+
86
+ try
87
+ {
88
+ usbListener.Start();
89
+ }
90
+ catch (COMException ex)
91
92
+ logTextBox.LogError("USB device enumeration failed.");
93
+ logTextBox.LogError($"{ex}");
94
95
96
if (_filePassedIn != string.Empty)
97
{
0 commit comments