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:
@@ -685,6 +685,8 @@ namespace ASCOM.Meade.net
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var i = 10;
|
var i = 10;
|
||||||
while (i > 0)
|
while (i > 0)
|
||||||
@@ -700,6 +702,11 @@ namespace ASCOM.Meade.net
|
|||||||
_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