You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Conform/Devices/CoverCalibrator Tester.vb
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -295,6 +295,7 @@ Friend Class CoverCalibratorTester
295
295
LogMsg("OpenCover",MessageLevel.msgOK, $"OpenCover was successful. The synchronous open took {DateTime.Now.Subtract(startTime).TotalSeconds.ToString("0.0")} seconds")
296
296
Else' Unsuccessful outcome
297
297
LogMsg("OpenCover",MessageLevel.msgError, $"OpenCover was unsuccessful - the returned CoverState was '{coverCalibratorDevice.CoverState.ToString().Trim()}' instead of 'Open'. The synchronous open took {DateTime.Now.Subtract(startTime).TotalSeconds.ToString("0.0")} seconds")
298
+
LogMsgInfo("OpenCover","PLEASE NOTE: The error above will also appear if your device does not set CoverState to Moving before returning from the OpenCover command.")
298
299
EndIf
299
300
Else' Asynchronous behaviour
300
301
canAsynchronousOpen=True
@@ -343,6 +344,7 @@ Friend Class CoverCalibratorTester
343
344
LogMsg("CloseCover",MessageLevel.msgOK, $"CloseCover was successful. The synchronous close took {DateTime.Now.Subtract(startTime).TotalSeconds.ToString("0.0")} seconds")
344
345
Else' Unsuccessful outcome
345
346
LogMsg("CloseCover",MessageLevel.msgError, $"CloseCover was unsuccessful - the returned CoverState was '{coverCalibratorDevice.CoverState.ToString().Trim()}' instead of 'Closed'. The synchronous close took {DateTime.Now.Subtract(startTime).TotalSeconds.ToString("0.0")} seconds")
347
+
LogMsgInfo("CloseCover","PLEASE NOTE: The error above will also appear if your device does not set CoverState to Moving before returning from the CloseCover command.")
346
348
EndIf
347
349
Else' Asynchronous behaviour
348
350
canAsynchronousOpen=True
@@ -544,6 +546,7 @@ Friend Class CoverCalibratorTester
544
546
LogMsg("CalibratorOff",MessageLevel.msgOK, $"Brightness is set to zero when the calibrator is turned off")
545
547
Else' Brightness is not set to zero when the calibrator is turned off
546
548
LogMsg("CalibratorOff",MessageLevel.msgIssue, $"Brightness is not set to zero when the calibrator is turned off")
549
+
LogMsgInfo("CalibratorOff","PLEASE NOTE: The issue above will also appear if your device does not set CalibratorState to NotReady before returning from the CalibratorOff command.")
547
550
EndIf
548
551
549
552
Else' Unsuccessful outcome
@@ -621,6 +624,7 @@ Friend Class CoverCalibratorTester
621
624
LogMsg("CalibratorOn",MessageLevel.msgOK, $"The Brightness property does return the value that was set")
622
625
Else' The returned Brightness is different to what was set
623
626
LogMsg("CalibratorOn",MessageLevel.msgIssue, $"The Brightness property value: {returnedBrightness} does not match the value that was set: {requestedBrightness}")
627
+
LogMsgInfo("CalibratorOn","PLEASE NOTE: The issue above will also appear if your device does not set CalibratorState to NotReady before returning from the CalibratorOn command.")
624
628
EndIf
625
629
626
630
Else' Unsuccessful outcome
@@ -669,7 +673,6 @@ Friend Class CoverCalibratorTester
<Assembly:AssemblyDescription("ASCOM Conformance Checker."&vbcrlf&vbcrlf&"This tool confirms conformance of an ASCOM driver to the relevant ASCOM specification."&vbcrlf&vbcrlf&"Please report issues on ASCOM's Groups.io Help forum, thanks - Peter.")>
REQUIRED_PLATFORM_VERSION = 6.5; // Set this to the minimum required ASCOM Platform version for this application
101
+
REQUIRED_PLATFORM_VERSION = 6.5; // Set this to the minimum required ASCOM Platform version for this application
102
102
103
103
//
104
104
// Function to return the ASCOM Platform's version number as a double.
105
105
//
106
-
functionPlatformVersion(): Double;
106
+
functionPlatformVersion(): Extended;
107
107
var
108
108
PlatVerString : String;
109
109
begin
@@ -133,8 +133,8 @@ var
133
133
else
134
134
if PlatformVersionNumber = 0.0then
135
135
MsgBox('No ASCOM Platform is installed. Please install Platform ' + Format('%3.1f', [REQUIRED_PLATFORM_VERSION]) + ' or later from http://www.ascom-standards.org', mbCriticalError, MB_OK)
136
-
else
137
-
MsgBox('ASCOM Platform ' + Format('%3.1f', [REQUIRED_PLATFORM_VERSION]) + ' or later is required, but Platform '+ Format('%3.1f', [PlatformVersionNumber]) + ' is installed.Please install the latest Platform before continuing; you will find it at http://www.ascom-standards.org', mbCriticalError, MB_OK);
136
+
else
137
+
MsgBox('This version of Conform requires ASCOM Platform ' + Format('%3.1f', [REQUIRED_PLATFORM_VERSION]) + ' or later, but Platform '+ Format('%3.1f', [PlatformVersionNumber]) + ' is installed.' #13#13'Please install the latest Platform before continuing; you will find it at https://www.ascom-standards.org', mbCriticalError, MB_OK);
138
138
end;
139
139
140
140
// Code to enable the installer to uninstall previous versions of itself when a new version is installed
0 commit comments