Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/FelLib
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-06 00:37:44 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-06 00:37:44 +0300
commit9c14d814fce204192b5d85b551aa169d4173959e (patch)
treed47b50dc5fa67efffcf39723152103962ea867f3 /FelLib
parentf324e9b23530cd24f24c44be6743bec21aadb16f (diff)
Very debug mode
Diffstat (limited to 'FelLib')
-rw-r--r--FelLib/Fel.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/FelLib/Fel.cs b/FelLib/Fel.cs
index e7eed40d..0546948c 100644
--- a/FelLib/Fel.cs
+++ b/FelLib/Fel.cs
@@ -158,10 +158,10 @@ namespace com.clusterrr.FelLib
private void WriteToUSB(byte[] buffer)
{
-//#if DEBUG
-// Debug.WriteLine("-> " + BitConverter.ToString(buffer));
-//#endif
- Debug.WriteLine(string.Format("-> {0} bytes" , buffer.Length));
+#if VERY_DEBUG
+ Debug.WriteLine("->[FEL] " + BitConverter.ToString(buffer));
+#endif
+ Debug.WriteLine(string.Format("-> {0} bytes", buffer.Length));
int pos = 0;
int l;
while (pos < buffer.Length)
@@ -180,9 +180,9 @@ namespace com.clusterrr.FelLib
var result = epReader.Read(buffer, offset, length, ReadTimeout, out l);
if (result != ErrorCode.Ok)
throw new Exception("USB read error: " + result.ToString());
-//#if DEBUG
-// Debug.WriteLine("<- " + BitConverter.ToString(buffer));
-//#endif
+#if VERY_DEBUG
+ Debug.WriteLine("<-[FEL] " + BitConverter.ToString(buffer));
+#endif
Debug.WriteLine(string.Format("<- {0} bytes", length));
return l;
}