From: <an...@us...> - 2008-03-16 12:25:28
|
Revision: 1471 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1471&view=rev Author: and-81 Date: 2008-03-16 05:25:27 -0700 (Sun, 16 Mar 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverReplacement.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverXP.cs Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverReplacement.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverReplacement.cs 2008-03-16 12:17:24 UTC (rev 1470) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverReplacement.cs 2008-03-16 12:25:27 UTC (rev 1471) @@ -793,18 +793,20 @@ packetBytes = new byte[bytesRead]; Marshal.Copy(deviceBufferPtr, packetBytes, 0, bytesRead); +#if DEBUG + DebugWriteLine("Received data:"); + DebugDump(packetBytes); +#endif + int[] timingData = null; - if (_decodeCarry != 0 || packetBytes[0] >= 0x81 && packetBytes[0] <= 0x8F) + if (_decodeCarry != 0 || packetBytes[0] >= 0x81 && packetBytes[0] <= 0x9E) { timingData = GetTimingDataFromPacket(packetBytes); } #if DEBUG else { - DebugWriteLine("Received data:"); - DebugDump(packetBytes); - double firmware = 0.0; int indexOfFF = Array.IndexOf(packetBytes, (byte)0xFF); Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverXP.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverXP.cs 2008-03-16 12:17:24 UTC (rev 1470) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/DriverXP.cs 2008-03-16 12:25:27 UTC (rev 1471) @@ -771,18 +771,20 @@ packetBytes = new byte[bytesRead]; Marshal.Copy(deviceBufferPtr, packetBytes, 0, bytesRead); +#if DEBUG + DebugWriteLine("Received data:"); + DebugDump(packetBytes); +#endif + int[] timingData = null; - if (_decodeCarry != 0 || packetBytes[0] >= 0x81 && packetBytes[0] <= 0x8F) + if (_decodeCarry != 0 || packetBytes[0] >= 0x81 && packetBytes[0] <= 0x9E) { timingData = GetTimingDataFromPacket(packetBytes); } #if DEBUG else { - DebugWriteLine("Received data:"); - DebugDump(packetBytes); - double firmware = 0.0; int indexOfFF = Array.IndexOf(packetBytes, (byte)0xFF); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |