diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index d3b849b..6d5442e 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -4043,7 +4043,9 @@ namespace ASCOM.Meade.net /// This technique should mean that it is never necessary to manually register a driver with ASCOM. /// [ComRegisterFunction] +#pragma warning disable IDE0060 // Remove unused parameter public static void RegisterAscom(Type t) +#pragma warning restore IDE0060 // Remove unused parameter { RegUnregAscom(true); } @@ -4066,7 +4068,9 @@ namespace ASCOM.Meade.net /// This technique should mean that it is never necessary to manually unregister a driver from ASCOM. /// [ComUnregisterFunction] +#pragma warning disable IDE0060 // Remove unused parameter public static void UnregisterAscom(Type t) +#pragma warning restore IDE0060 // Remove unused parameter { RegUnregAscom(false); } diff --git a/Meade.net/SharedResources.cs b/Meade.net/SharedResources.cs index 03fcf3d..38467a9 100644 --- a/Meade.net/SharedResources.cs +++ b/Meade.net/SharedResources.cs @@ -8,7 +8,7 @@ // // NOTES: // -// * ALL DECLARATIONS MUST BE STATIC HERE!! INSTANCES OF THIS CLASS MUST NEVER BE CREATED! +// * ALL DECLARATIONS MUST BE STATIC HERE!! INSTANCES OF THIS CLASS MUST NEVER BE CREATEDReceiveTimeout // // Written by: Bob Denny 29-May-2007 // Modified by Chris Rowland and Peter Simpson to hamdle multiple hardware devices March 2011 @@ -401,7 +401,7 @@ namespace ASCOM.Meade.net SharedSerial.StopBits = (SerialStopBits)Enum.Parse(typeof(SerialStopBits), profileProperties.StopBits); SharedSerial.Parity = (SerialParity)Enum.Parse(typeof(SerialParity), profileProperties.Parity); SharedSerial.Handshake = (SerialHandshake)Enum.Parse(typeof(SerialHandshake), profileProperties.Handshake); - SharedSerial.ReceiveTimeout = 5; //5 second timeout; + SharedSerial.ReceiveTimeout = 30; //30 second timeout; SharedSerial.Speed = SerialSpeed.ps9600; var wantedSpeed = (SerialSpeed)profileProperties.Speed;