Moved the code that reports the driver version to the end of the initialisation.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace Meade.net.Telescope.UnitTests
|
|||||||
|
|
||||||
[TestCase("1", ":SMHome#", "Home")]
|
[TestCase("1", ":SMHome#", "Home")]
|
||||||
[TestCase("2", ":SNClub#", "Club")]
|
[TestCase("2", ":SNClub#", "Club")]
|
||||||
[TestCase("3", ":SOGPS#", "GPS")]
|
[TestCase("3", ":SOGPS Site#", "GPS Site")]
|
||||||
[TestCase("4", ":SPParents#", "Parents")]
|
[TestCase("4", ":SPParents#", "Parents")]
|
||||||
public void Action_Site_SetName_WhenCallingWithValidValues_ThenSelectsCorrectSite(string site, string telescopeCommand, string siteName)
|
public void Action_Site_SetName_WhenCallingWithValidValues_ThenSelectsCorrectSite(string site, string telescopeCommand, string siteName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -105,14 +105,12 @@ namespace ASCOM.Meade.net
|
|||||||
{
|
{
|
||||||
//todo move the TraceLogger out to a factory class.
|
//todo move the TraceLogger out to a factory class.
|
||||||
_tl = new TraceLogger("", "Meade.Generic.Telescope");
|
_tl = new TraceLogger("", "Meade.Generic.Telescope");
|
||||||
LogMessage("Telescope", "Starting initialisation");
|
|
||||||
LogMessage("Telescope", $"Driver version: {DriverVersion}");
|
|
||||||
|
|
||||||
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
||||||
|
|
||||||
IsConnected = false; // Initialise connected to false
|
IsConnected = false; // Initialise connected to false
|
||||||
|
|
||||||
LogMessage("Telescope", "Completed initialisation");
|
LogMessage("Telescope", "Completed initialisation");
|
||||||
|
LogMessage("Telescope", $"Driver version: {DriverVersion}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -77,14 +77,12 @@ namespace ASCOM.Meade.net
|
|||||||
//todo move the TraceLogger out to a factory class.
|
//todo move the TraceLogger out to a factory class.
|
||||||
Tl = new TraceLogger("", "Meade.Generic.focusser");
|
Tl = new TraceLogger("", "Meade.Generic.focusser");
|
||||||
|
|
||||||
LogMessage("Focuser", "Starting initialisation");
|
|
||||||
LogMessage("Focuser", $"Driver version: {DriverVersion}");
|
|
||||||
|
|
||||||
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
ReadProfile(); // Read device configuration from the ASCOM Profile store
|
||||||
|
|
||||||
IsConnected = false; // Initialise connected to false
|
IsConnected = false; // Initialise connected to false
|
||||||
|
|
||||||
LogMessage("Focuser", "Completed initialisation");
|
LogMessage("Focuser", "Completed initialisation");
|
||||||
|
LogMessage("Focuser", $"Driver version: {DriverVersion}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user