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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user