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
|
try
|
||||||
{
|
{
|
||||||
if (Connected)
|
if (Connected)
|
||||||
result = (!isInternalCall && _forceSlewingCount > 0) || MovingAxis() || IsSlewingToTarget();
|
{
|
||||||
|
if (!isInternalCall)
|
||||||
|
{
|
||||||
|
result = _forceSlewingCount > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
result = result || MovingAxis() || IsSlewingToTarget();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
LogMessage("GetSlewing", $"Result = {result}");
|
LogMessage("GetSlewing", $"Result = {result} (isInternalCall = {isInternalCall}");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
|
|||||||
Reference in New Issue
Block a user