From d1a35aa2a3b6a0a038496e06f56daf356cfd9adc Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sat, 14 Jan 2017 13:36:32 +0300 Subject: 'Can't repack ramdisk' error on some systems should be gone now --- FelLib/Fel.cs | 2 +- FelLib/WinUSBNet/API/DeviceManagement.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'FelLib') 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; } } -- cgit v1.2.3