Added ability to skip the prompts initial connect, and added ability to send the date and time on initial connect

This commit is contained in:
2021-04-21 20:17:00 +01:00
parent 5538f51cf0
commit e4af93dd07
8 changed files with 207 additions and 54 deletions
+6
View File
@@ -28,6 +28,8 @@ namespace ASCOM.Meade.net
protected string GuidingStyle;
protected double SiteElevation;
protected short ProfileSettleTime;
protected bool SkipAutoStarPrompts;
protected bool SendDateTime;
protected readonly ISharedResourcesWrapper SharedResourcesWrapper;
@@ -69,6 +71,8 @@ namespace ASCOM.Meade.net
GuidingStyle = profileProperties.GuidingStyle.ToLower();
SiteElevation = profileProperties.SiteElevation;
ProfileSettleTime = profileProperties.SettleTime;
SkipAutoStarPrompts = profileProperties.SkipPrompts;
SendDateTime = profileProperties.SendDateTime;
LogMessage("ReadProfile", $"Trace logger enabled: {Tl.Enabled}");
LogMessage("ReadProfile", $"Com Port: {ComPort}");
@@ -79,6 +83,8 @@ namespace ASCOM.Meade.net
LogMessage("ReadProfile", $"Guiding Style: {GuidingStyle}");
LogMessage("ReadProfile", $"Site Elevation: {SiteElevation}");
LogMessage("ReadProfile", $"Settle Time after slew: {ProfileSettleTime}");
LogMessage("ReadProfile", $"Skip Autostar startup prompts: {SkipAutoStarPrompts}");
LogMessage("ReadProfile", $"Send date and time on connect: {SendDateTime}");
}
/// <summary>