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-02-07 00:23:49 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-02-07 00:23:49 +0300
commit7217e5882968829703a13aedcff424c31ca24094 (patch)
tree7dd854020bdea41dd55e504c865bbe61faa9cfb2 /FelLib
parenta2197a6cb42d511747ccd2159cf1f4d29ef15f07 (diff)
Optimization, optimization, optimization
Diffstat (limited to 'FelLib')
-rw-r--r--FelLib/Fel.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/FelLib/Fel.cs b/FelLib/Fel.cs
index bdf02435..7c195d4d 100644
--- a/FelLib/Fel.cs
+++ b/FelLib/Fel.cs
@@ -129,18 +129,20 @@ namespace com.clusterrr.FelLib
private void WriteToUSB(byte[] buffer)
{
-#if DEBUG
- Debug.WriteLine("-> " + BitConverter.ToString(buffer));
-#endif
+//#if DEBUG
+// Debug.WriteLine("-> " + BitConverter.ToString(buffer));
+//#endif
+ Debug.WriteLine(string.Format("-> {0} bytes" , buffer.Length));
device.Pipes[outEndp].Write(buffer);
}
private int ReadFromUSB(byte[] buffer, int offset, int length)
{
var data = device.Pipes[inEndp].Read(buffer, offset, length);
-#if DEBUG
- Debug.WriteLine("<- " + BitConverter.ToString(buffer));
-#endif
+//#if DEBUG
+// Debug.WriteLine("<- " + BitConverter.ToString(buffer));
+//#endif
+ Debug.WriteLine(string.Format("<- {0} bytes", length));
return data;
}
private byte[] ReadFromUSB(UInt32 length)