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 17:30:28 +01:00
parent d68d51bd9c
commit 5aec81b45f
+5
View File
@@ -388,6 +388,7 @@ namespace ASCOM.Meade.net
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.
SetLongFormat(true);
@@ -398,6 +399,10 @@ namespace ASCOM.Meade.net
SetTelescopePrecision("Connect");
}
else
{
LogMessage("Connected Set", $"Skipping first connection telescope adjustments (current connections: {connectionInfo.SameDevice}");
}
}
catch (Exception)
{