diff options
Diffstat (limited to 'FelLib')
-rw-r--r-- | FelLib/Fel.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FelLib/Fel.cs b/FelLib/Fel.cs index fa0982d5..bdf02435 100644 --- a/FelLib/Fel.cs +++ b/FelLib/Fel.cs @@ -129,14 +129,18 @@ namespace com.clusterrr.FelLib private void WriteToUSB(byte[] buffer)
{
+#if DEBUG
Debug.WriteLine("-> " + BitConverter.ToString(buffer));
+#endif
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
return data;
}
private byte[] ReadFromUSB(UInt32 length)
|