The is Slewing is now actively detecting a | response, or an empty string to return the correct value. There is still an edge case of a string of FF characters which is unresolved
This commit is contained in:
@@ -1986,8 +1986,17 @@ namespace ASCOM.Meade.net
|
|||||||
bool isSlewing = !string.IsNullOrEmpty(result);
|
bool isSlewing = !string.IsNullOrEmpty(result);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!isSlewing)
|
if (string.IsNullOrEmpty(result))
|
||||||
return false;
|
{
|
||||||
|
isSlewing = false;
|
||||||
|
return isSlewing;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result.Contains("|"))
|
||||||
|
{
|
||||||
|
isSlewing = true;
|
||||||
|
return isSlewing;
|
||||||
|
}
|
||||||
|
|
||||||
//classic LX200 return bar with 32 chars. FF is contained from left to right when slewing
|
//classic LX200 return bar with 32 chars. FF is contained from left to right when slewing
|
||||||
byte[] ba = Encoding.Default.GetBytes(result);
|
byte[] ba = Encoding.Default.GetBytes(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user