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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user