Adding error trap so that the display prompts can be bypassed if it doesn't work, will still try to set the date and time.
This commit is contained in:
@@ -686,19 +686,26 @@ namespace ASCOM.Meade.net
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
var i = 10;
|
try
|
||||||
while (i > 0)
|
|
||||||
{
|
{
|
||||||
var displayText = Action("Handbox", "readdisplay");
|
var i = 10;
|
||||||
if (displayText.Contains("Align:"))
|
while (i > 0)
|
||||||
{
|
{
|
||||||
i = 0;
|
var displayText = Action("Handbox", "readdisplay");
|
||||||
continue;
|
if (displayText.Contains("Align:"))
|
||||||
}
|
{
|
||||||
|
i = 0;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Action("Handbox", "mode");
|
Action("Handbox", "mode");
|
||||||
_utilities.WaitForMilliseconds(500);
|
_utilities.WaitForMilliseconds(500);
|
||||||
i--;
|
i--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (TimeoutException e)
|
||||||
|
{
|
||||||
|
LogMessage("ApplySkipAutoStarPrompts","Timed out bypassing the date time prompts. Skipping.");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user