Modified the code again, so that the _forceSlewingCount is done last, so that it's at up to date as possible.
This commit is contained in:
@@ -3267,17 +3267,16 @@ namespace ASCOM.Meade.net
|
|||||||
private bool GetSlewing(bool isInternalCall)
|
private bool GetSlewing(bool isInternalCall)
|
||||||
{
|
{
|
||||||
var result = false;
|
var result = false;
|
||||||
|
|
||||||
if (!isInternalCall)
|
|
||||||
{
|
|
||||||
result = _forceSlewingCount > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (Connected)
|
if (Connected)
|
||||||
{
|
{
|
||||||
result = result || MovingAxis() || IsSlewingToTarget();
|
result = MovingAxis() || IsSlewingToTarget();
|
||||||
|
if (!isInternalCall && !result)
|
||||||
|
{
|
||||||
|
result = _forceSlewingCount > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user