diff options
Diffstat (limited to 'FelLib')
-rw-r--r-- | FelLib/Fel.cs | 2 | ||||
-rw-r--r-- | FelLib/WinUSBNet/API/DeviceManagement.cs | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/FelLib/Fel.cs b/FelLib/Fel.cs index 63fbee54..549e71b8 100644 --- a/FelLib/Fel.cs +++ b/FelLib/Fel.cs @@ -370,7 +370,7 @@ namespace com.clusterrr.FelLib }
#if DEBUG
- private static void DebugLog(string text)
+ public static void DebugLog(string text)
{
Console.WriteLine(text);
try
diff --git a/FelLib/WinUSBNet/API/DeviceManagement.cs b/FelLib/WinUSBNet/API/DeviceManagement.cs index 2d593cce..e58a22b1 100644 --- a/FelLib/WinUSBNet/API/DeviceManagement.cs +++ b/FelLib/WinUSBNet/API/DeviceManagement.cs @@ -14,6 +14,7 @@ using System.Runtime.InteropServices; using System.Collections.Generic;
using System.Windows.Forms;
using System.Text.RegularExpressions;
+using com.clusterrr.FelLib;
namespace MadWizard.WinUSBNet.API
{
@@ -241,12 +242,18 @@ namespace MadWizard.WinUSBNet.API // Get the String containing the devicePathName.
try
{
+#if DEBUG
+ Fel.DebugLog("Trying to parse device: "+ pathName);
+#endif
DeviceDetails details = GetDeviceDetails(pathName, deviceInfoSet, da);
if (details.VID == vid && details.PID == pid)
deviceList.Add(details);
}
catch (APIException)
{
+#if DEBUG
+ Fel.DebugLog("Can't parse this device");
+#endif
continue;
}
}
|