From a9f57b7ad2edcf3b82178d4add016da06b5cdc73 Mon Sep 17 00:00:00 2001 From: Colin Date: Sun, 31 Jan 2021 11:33:43 +0000 Subject: [PATCH] The is Slewing is now actively detecting a | response, or an empty string to return the correct value. There is still an edge case of a string of FF characters which is unresolved --- Meade.net.Telescope/Telescope.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index 8c3e88e..a8c3104 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -1986,8 +1986,17 @@ namespace ASCOM.Meade.net bool isSlewing = !string.IsNullOrEmpty(result); try { - if (!isSlewing) - return false; + if (string.IsNullOrEmpty(result)) + { + isSlewing = false; + return isSlewing; + } + + if (result.Contains("|")) + { + isSlewing = true; + return isSlewing; + } //classic LX200 return bar with 32 chars. FF is contained from left to right when slewing byte[] ba = Encoding.Default.GetBytes(result);