Tweaked the code so that the _forceInternal variable doesn't care about if the scope is connected or not.
This commit is contained in:
@@ -3267,15 +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)
|
||||||
{
|
{
|
||||||
if (!isInternalCall)
|
|
||||||
{
|
|
||||||
result = _forceSlewingCount > 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
result = result || MovingAxis() || IsSlewingToTarget();
|
result = result || MovingAxis() || IsSlewingToTarget();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user