Added initial display values bypass for the Autostar 497

This commit is contained in:
2021-04-22 21:40:07 +01:00
parent e4af93dd07
commit ed84313c2e
+20 -5
View File
@@ -462,13 +462,28 @@ namespace ASCOM.Meade.net
{
if (SkipAutoStarPrompts)
{
var displayText = Action("Handbox", "readdisplay");
if (displayText.Contains("Daylight"))
if (SharedResourcesWrapper.ProductName == TelescopeList.LX200GPS)
{
for(var i = 0; i < 3; i++)
var displayText = Action("Handbox", "readdisplay");
if (displayText.Contains("Daylight"))
{
Action("Handbox", "enter");
_utilities.WaitForMilliseconds(2000);
for (var i = 0; i < 3; i++)
{
Action("Handbox", "enter");
_utilities.WaitForMilliseconds(2000);
}
}
}
else if (SharedResourcesWrapper.ProductName == TelescopeList.Autostar497)
{
var displayText = Action("Handbox", "readdisplay");
if (displayText.Contains("€Press 0 to Alignor MODE for Menu"))
{
for (var i = 0; i < 4; i++)
{
Action("Handbox", "mode");
_utilities.WaitForMilliseconds(500);
}
}
}
}