Tweaked the GetSlewing command hopefully this makes the logic function correctly.

Also upgraded the logging to expose whether it's an internal call or not.
This commit is contained in:
2024-11-27 22:12:27 +00:00
parent c2bc2cfc7e
commit cd6e72eb0a
+9 -2
View File
@@ -3270,11 +3270,18 @@ namespace ASCOM.Meade.net
try
{
if (Connected)
result = (!isInternalCall && _forceSlewingCount > 0) || MovingAxis() || IsSlewingToTarget();
{
if (!isInternalCall)
{
result = _forceSlewingCount > 0;
}
result = result || MovingAxis() || IsSlewingToTarget();
}
}
finally
{
LogMessage("GetSlewing", $"Result = {result}");
LogMessage("GetSlewing", $"Result = {result} (isInternalCall = {isInternalCall}");
}
if (result)