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:
2021-01-31 11:33:43 +00:00
parent c7fa7ab095
commit a9f57b7ad2
+11 -2
View File
@@ -1986,8 +1986,17 @@ namespace ASCOM.Meade.net
bool isSlewing = !string.IsNullOrEmpty(result);
try
{
if (!isSlewing)
return false;
if (string.IsNullOrEmpty(result))
{
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
byte[] ba = Encoding.Default.GetBytes(result);