Added a general try catch to the UnPark method.

This commit is contained in:
2022-05-08 15:31:56 +01:00
parent bb54356b58
commit 1b220334d6
+8
View File
@@ -3040,6 +3040,8 @@ namespace ASCOM.Meade.net
}
public void Unpark()
{
try
{
LogMessage("Unpark", "Unparking telescope");
CheckConnected("Unpark");
@@ -3075,6 +3077,12 @@ namespace ASCOM.Meade.net
SideOfPier = PierSide.pierUnknown;
LogMessage("Unpark", "Unparking Completed");
}
catch (Exception ex)
{
LogMessage("Unpark", $"Error: {ex.Message}");
throw;
}
}
private bool BypassHandboxEntryForAutostarII()
{