From 056484bce95e725fdfc4f3018c388f70081c5289 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Tue, 24 Dec 2024 17:25:18 +0000 Subject: [PATCH] Modified the code again, so that the _forceSlewingCount is done last, so that it's at up to date as possible. --- Meade.net.Telescope/Telescope.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index 427a1bd..d3b849b 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -3267,17 +3267,16 @@ namespace ASCOM.Meade.net private bool GetSlewing(bool isInternalCall) { var result = false; - - if (!isInternalCall) - { - result = _forceSlewingCount > 0; - } - + try { if (Connected) { - result = result || MovingAxis() || IsSlewingToTarget(); + result = MovingAxis() || IsSlewingToTarget(); + if (!isInternalCall && !result) + { + result = _forceSlewingCount > 0; + } } } finally