Second and subsequent Connections to the telescope driver now no longer trigger resetting the Guide rate and precision. It's assumed they are already set correctly.

This commit is contained in:
2019-08-22 23:22:36 +01:00
parent 633babd967
commit c311fb8cbe
7 changed files with 78 additions and 26 deletions
+3 -3
View File
@@ -179,7 +179,7 @@ namespace ASCOM.Meade.net
try
{
ReadProfile();
_sharedResourcesWrapper.Connect("Serial");
_sharedResourcesWrapper.Connect("Serial", DriverId);
try
{
SelectSite(1);
@@ -189,7 +189,7 @@ namespace ASCOM.Meade.net
}
catch (Exception)
{
_sharedResourcesWrapper.Disconnect("Serial");
_sharedResourcesWrapper.Disconnect("Serial", DriverId);
throw;
}
}
@@ -201,7 +201,7 @@ namespace ASCOM.Meade.net
else
{
LogMessage("Connected Set", "Disconnecting from port {0}", _comPort);
_sharedResourcesWrapper.Disconnect("Serial");
_sharedResourcesWrapper.Disconnect("Serial", DriverId);
IsConnected = false;
}
}