1
0
mirror of https://bitbucket.org/cjdskunkworks/lynxastrodewcontroller.git synced 2026-05-03 17:28:52 +00:00

Added missing build.build file and fixed a couple of broken unit tests.

This commit is contained in:
2021-02-17 20:45:17 +00:00
parent 7fe6d52363
commit 57b99ce84e
4 changed files with 73 additions and 25 deletions
+4 -3
View File
@@ -132,7 +132,7 @@ namespace ASCOM.LynxAstro.DewController
#region Profile
private const string DriverId = "ASCOM.MeadeGeneric.Telescope";
private const string DriverId = "ASCOM.LynxAstro.DewController.Switch";
// Constants used for Profile persistence
private const string ComPortProfileName = "COM Port";
@@ -145,7 +145,7 @@ namespace ASCOM.LynxAstro.DewController
{
using (IProfileWrapper driverProfile = ProfileFactory.Create())
{
driverProfile.DeviceType = "Telescope";
driverProfile.DeviceType = "Switch";
driverProfile.WriteValue(DriverId, TraceStateProfileName, profileProperties.TraceLogger.ToString());
driverProfile.WriteValue(DriverId, ComPortProfileName, profileProperties.ComPort);
}
@@ -164,7 +164,7 @@ namespace ASCOM.LynxAstro.DewController
ProfileProperties profileProperties = new ProfileProperties();
using (IProfileWrapper driverProfile = ProfileFactory.Create())
{
driverProfile.DeviceType = "Telescope";
driverProfile.DeviceType = "Switch";
profileProperties.ComPort = driverProfile.GetValue(DriverId, ComPortProfileName, string.Empty, ComPortDefault);
profileProperties.TraceLogger = Convert.ToBoolean(driverProfile.GetValue(DriverId, TraceStateProfileName, string.Empty, TraceStateDefault));
@@ -181,6 +181,7 @@ namespace ASCOM.LynxAstro.DewController
if (!finished)
profileProperties.SwitchNames.Add(switchValue);
switchNo++;
} while (!finished);
}