Another slight tweak to the GetSlewing internal call code.
This commit is contained in:
@@ -3281,13 +3281,16 @@ namespace ASCOM.Meade.net
|
||||
}
|
||||
finally
|
||||
{
|
||||
LogMessage("GetSlewing", $"Result = {result} (isInternalCall = {isInternalCall}");
|
||||
LogMessage("GetSlewing", $"Result = {result} (isInternalCall = {isInternalCall})");
|
||||
}
|
||||
|
||||
if (result)
|
||||
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;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user