Code Inspections
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using ASCOM.Meade.net.Wrapper;
|
using ASCOM.Meade.net.Wrapper;
|
||||||
@@ -310,13 +309,15 @@ namespace ASCOM.Meade.net
|
|||||||
//Returns: sHH# or sHH.H#
|
//Returns: sHH# or sHH.H#
|
||||||
//The number of decimal hours to add to local time to convert it to UTC. If the number is a whole number the
|
//The number of decimal hours to add to local time to convert it to UTC. If the number is a whole number the
|
||||||
//sHH# form is returned, otherwise the longer form is returned.
|
//sHH# form is returned, otherwise the longer form is returned.
|
||||||
double utcOffsetHours;
|
double utcOffsetHours;
|
||||||
if (!double.TryParse(utcOffSet, out utcOffsetHours))
|
if (!double.TryParse(utcOffSet, out utcOffsetHours))
|
||||||
{
|
{
|
||||||
var message = "Unable to decode response from the telescope, This is likely a hardware serial communications error.";
|
var message = "Unable to decode response from the telescope, This is likely a hardware serial communications error.";
|
||||||
traceLogger.LogIssue("Connect", message);
|
traceLogger.LogIssue("Connect", message);
|
||||||
throw new Exception(message);
|
throw new Exception(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
traceLogger.LogMessage("Connect", $"Offset from UTC: {utcOffSet}", false);
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user