diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-07 00:23:49 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-02-07 00:23:49 +0300 |
commit | 7217e5882968829703a13aedcff424c31ca24094 (patch) | |
tree | 7dd854020bdea41dd55e504c865bbe61faa9cfb2 /FelLib | |
parent | a2197a6cb42d511747ccd2159cf1f4d29ef15f07 (diff) |
Optimization, optimization, optimization
Diffstat (limited to 'FelLib')
-rw-r--r-- | FelLib/Fel.cs | 14 |
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)
|