From 9c5620edee0e0f7a15385b35ee8c34656f414a15 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Fri, 23 Apr 2021 21:13:46 +0100 Subject: [PATCH] Going to try the proper command for bypassing the date entry for AutostarII --- Meade.net.Telescope/Telescope.cs | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index a6e8271..fdb427d 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -421,12 +421,16 @@ namespace ASCOM.Meade.net bool setTimeBeforeDisplayBypass = SharedResourcesWrapper.ProductName == TelescopeList.LX200GPS; if (setTimeBeforeDisplayBypass) - SendCurrentDateTime("Connect"); - - ApplySkipAutoStarPrompts("Connect"); - if (!setTimeBeforeDisplayBypass) - SendCurrentDateTime("Connect"); - + { + BypassHandboxEntryForAutostarII(); + //SendCurrentDateTime("Connect"); + } + else + { + ApplySkipAutoStarPrompts("Connect"); + if (!setTimeBeforeDisplayBypass) + SendCurrentDateTime("Connect"); + } } else { @@ -2502,6 +2506,13 @@ namespace ASCOM.Meade.net //:I# LX200 GPS Only - Causes the telescope to cease current operations and restart at its power on initialization. //Returns: X once the handset restart has completed + BypassHandboxEntryForAutostarII(); + + AtPark = false; + } + + private void BypassHandboxEntryForAutostarII() + { var utcCorrection = GetUtcCorrection(); var localDateTime = DateTime.UtcNow - utcCorrection; @@ -2512,8 +2523,6 @@ namespace ASCOM.Meade.net //intended to allow use of the Autostar II from permanent installations where GPS reception is not possible, such as within //metal domes. This command must be issued while the telescope is waiting at the initial daylight savings prompt. //Returns: 1 – if command was accepted. - - AtPark = false; } #endregion