Another slight tweak to the GetSlewing internal call code.
This commit is contained in:
@@ -3281,13 +3281,16 @@ namespace ASCOM.Meade.net
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
LogMessage("GetSlewing", $"Result = {result} (isInternalCall = {isInternalCall}");
|
LogMessage("GetSlewing", $"Result = {result} (isInternalCall = {isInternalCall})");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
SetSlewingMinEndTime();
|
SetSlewingMinEndTime();
|
||||||
else if (_clock.UtcNow < SharedResourcesWrapper.EarliestNonSlewingTime)
|
else if (_clock.UtcNow < SharedResourcesWrapper.EarliestNonSlewingTime && !isInternalCall)
|
||||||
|
{
|
||||||
|
LogMessage("GetSlewing", $"Last slewing operation has not yet completed. You need to wait for another {(_clock.UtcNow - SharedResourcesWrapper.EarliestNonSlewingTime).TotalMilliseconds} Milliseconds");
|
||||||
result = true;
|
result = true;
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user