Merged in develop (pull request #14)

Adding log message when making connections using a telescope device to show that if it's the first or secondary connection.
This commit is contained in:
2019-08-24 16:31:22 +00:00
+5
View File
@@ -388,6 +388,7 @@ namespace ASCOM.Meade.net
if (connectionInfo.SameDevice == 1) if (connectionInfo.SameDevice == 1)
{ {
LogMessage("Connected Set", $"Making first connection telescope adjustments");
//These settings are applied only when the first device connects to the telescope. //These settings are applied only when the first device connects to the telescope.
SetLongFormat(true); SetLongFormat(true);
@@ -398,6 +399,10 @@ namespace ASCOM.Meade.net
SetTelescopePrecision("Connect"); SetTelescopePrecision("Connect");
} }
else
{
LogMessage("Connected Set", $"Skipping first connection telescope adjustments (current connections: {connectionInfo.SameDevice}");
}
} }
catch (Exception) catch (Exception)
{ {