From 4b78d8fb4f4d6933e710236caac418de90fcbd47 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Sat, 31 Dec 2022 22:03:39 +0000 Subject: [PATCH] Added code to check for LX200GPS firmware version 4G0m which does not support the GW command. --- Meade.net.Telescope/Telescope.cs | 4 ++++ Meade.net/TelescopeList.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index d8fcfdf..d35e2ea 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -778,6 +778,10 @@ namespace ASCOM.Meade.net case TelescopeList.LX800: return FirmwareIsGreaterThan(TelescopeList.LX800_11i); case TelescopeList.LX200GPS: + if (SharedResourcesWrapper.FirmwareVersion.Equals(TelescopeList.LX200GPS_4G0M, + StringComparison.InvariantCultureIgnoreCase)) + return false; + return FirmwareIsGreaterThan(TelescopeList.LX200GPS_42G); case TelescopeList.RCX400: return FirmwareIsGreaterThan(TelescopeList.RCX400_22I); diff --git a/Meade.net/TelescopeList.cs b/Meade.net/TelescopeList.cs index 9cac51c..15c8307 100644 --- a/Meade.net/TelescopeList.cs +++ b/Meade.net/TelescopeList.cs @@ -29,6 +29,8 @@ public const string LX200GPS_42F = "4.2f"; // ReSharper disable once InconsistentNaming public const string LX200GPS_42G = "4.2g"; + + public const string LX200GPS_4G0M = "4G0m"; #endregion #region LX800