From: <che...@us...> - 2009-07-11 17:24:14
|
Revision: 3005 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3005&view=rev Author: chemelli_sf Date: 2009-07-11 17:24:10 +0000 (Sat, 11 Jul 2009) Log Message: ----------- - Fixed a wrong return code for X10 detection - Added some debug log lines to help understand when detection fails Modified Paths: -------------- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs 2009-07-11 16:41:50 UTC (rev 3004) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs 2009-07-11 17:24:10 UTC (rev 3005) @@ -228,6 +228,7 @@ IrssLog.Error("{0} exception: {1}", Name, ex.NativeErrorCode); return DetectionResult.DeviceException; } + IrssLog.Debug("{0} exception: {1}", Name, ex.NativeErrorCode); } catch (Exception ex) { Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs 2009-07-11 16:41:50 UTC (rev 3004) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/MacMini Receiver/MacMini Receiver.cs 2009-07-11 17:24:10 UTC (rev 3005) @@ -329,6 +329,7 @@ IrssLog.Error("{0} exception: {1}", Name, ex.NativeErrorCode); return DetectionResult.DeviceException; } + IrssLog.Debug("{0} exception: {1}", Name, ex.NativeErrorCode); } catch (Exception ex) { Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs 2009-07-11 16:41:50 UTC (rev 3004) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs 2009-07-11 17:24:10 UTC (rev 3005) @@ -193,14 +193,17 @@ if (ex.ErrorCode != -2147221164) { IrssLog.Warn("{0} exception: {1}", Name, ex.ErrorCode); + return DetectionResult.DeviceException; } - return DetectionResult.DeviceNotFound; + IrssLog.Debug("{0} exception: {1}", Name, ex.ErrorCode); } catch (Exception ex) { IrssLog.Error("{0} exception: {1} type: {2}", Name, ex.Message, ex.GetType()); return DetectionResult.DeviceException; } + + return DetectionResult.DeviceNotFound; } /// <summary> Modified: trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs 2009-07-11 16:41:50 UTC (rev 3004) +++ trunk/plugins/IR Server Suite/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs 2009-07-11 17:24:10 UTC (rev 3005) @@ -366,6 +366,7 @@ IrssLog.Error("{0} exception: {1}", Name, ex.NativeErrorCode); return DetectionResult.DeviceException; } + IrssLog.Debug("{0} exception: {1}", Name, ex.NativeErrorCode); } catch (Exception ex) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |