Skip to content

Commit

Permalink
[Windows] Log error if driver is wrong (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Apr 28, 2024
1 parent 9608626 commit b9d336a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions windows/QMK Toolbox/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ private void BootloaderDeviceConnected(BootloaderDevice device)
{
logTextBox.LogBootloader($"{device.Name} device connected ({device.Driver}): {device}");

if (device.PreferredDriver != device.Driver)
{
logTextBox.LogError($"{device.Name} device has {device.Driver} driver assigned but should be {device.PreferredDriver}. Flashing may not succeed.");
}

if (windowState.AutoFlashEnabled)
{
FlashAllAsync();
Expand Down
2 changes: 1 addition & 1 deletion windows/QMK Toolbox/Usb/Bootloader/AtmelDfuDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public AtmelDfuDevice(UsbDevice d) : base(d)
Type = BootloaderType.AtmelDfu;
Name = "Atmel DFU";
}
PreferredDriver = "libusb0";
PreferredDriver = "WinUSB";
IsEepromFlashable = true;
IsResettable = true;
}
Expand Down

0 comments on commit b9d336a

Please sign in to comment.