From 59620f1be426c6a368ff7b79df87013e05582f5b Mon Sep 17 00:00:00 2001 From: TheCyberBrick Date: Thu, 30 Nov 2023 11:51:16 +0100 Subject: [PATCH] Set initial version --- Properties/AssemblyInfo.cs | 4 ++-- StarGoMount.cs | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index b0af138..85f9fdb 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -29,5 +29,5 @@ // Build Number // Revision // -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("0.0.1.0")] +[assembly: AssemblyFileVersion("0.0.1.0")] diff --git a/StarGoMount.cs b/StarGoMount.cs index fff3029..7e55846 100644 --- a/StarGoMount.cs +++ b/StarGoMount.cs @@ -24,17 +24,16 @@ public class StarGoMount : IPolarAlignmentMount public double SettlingTime { get; set; } = 1.0; - private readonly Telescope telescope; - - public StarGoMount() - { - telescope = new Telescope("ASCOM.AvalonStarGo.NET.Telescope"); - } + private Telescope telescope; public void Connect() { try { + if (telescope == null) + { + telescope = new Telescope("ASCOM.AvalonStarGo.NET.Telescope"); + } telescope.Connected = true; Thread.Sleep(TimeSpan.FromSeconds(1)); }