Skip to content

Commit f378454

Browse files
V1.0.2.2 Updates
- DEC go Home command was requiring one firmware version too high. - Focuser position was being queried incorrectly
1 parent 2b650ee commit f378454

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

OATCommunications.ASCOM/CommunicationHandlers/ASCOMCommunicationHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ protected override void RunJob(Job job)
7474
}
7575

7676
reply = _oat.Action("Serial:PassThroughCommand", command);
77+
if (_logJobs) Log.WriteLine("[{0:0000}] ASCOM: [{1}] Received reply: '{2}'", requestIndex, job.Command, reply);
7778
response = new CommandResponse(reply, true);
7879
}
7980
catch (Exception ex)

OATCommunications.ASCOM/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.0.1")]
36+
[assembly: AssemblyFileVersion("1.0.0.1")]

OATControl/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.2.1")]
55-
[assembly: AssemblyFileVersion("1.0.2.1")]
54+
[assembly: AssemblyVersion("1.0.2.2")]
55+
[assembly: AssemblyFileVersion("1.0.2.2")]

OATControl/ViewModels/MountVM.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public MountVM()
242242
_chooseTargetCommand = new DelegateCommand((p) => OnShowTargetChooser(), () => MountConnected);
243243
_setDecLowerLimitCommand = new DelegateCommand((p) => SetDecLowLimit(), () => MountConnected);
244244
_setDECHomeOffsetFromPowerOn = new DelegateCommand((p) => OnSetDECHomeOffsetFromPowerOn(), () => MountConnected);
245-
_gotoDECHomeFromPowerOn = new DelegateCommand((p) => OnGotoDECHomeFromPowerOn(), () => MountConnected && (FirmwareVersion > 10916));
245+
_gotoDECHomeFromPowerOn = new DelegateCommand((p) => OnGotoDECHomeFromPowerOn(), () => MountConnected && (FirmwareVersion > 10915));
246246

247247

248248
var poiFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "PointsOfInterest.xml");
@@ -547,8 +547,8 @@ private async Task UpdateStatus()
547547
{
548548
if (result.Success)
549549
{
550-
// 0 1 2 3 4 5 6
551-
// Idle,--T,0,0,31,080300,+900000,#
550+
// 0 1 2 3 4 5 6 7
551+
// Idle,--T,0,0,31,080300,+900000,50000,#
552552
string status = result.Data;
553553
if (result.Success && !string.IsNullOrWhiteSpace(status))
554554
{
@@ -659,7 +659,11 @@ private async Task UpdateStatus()
659659
CurrentDECSecond = int.Parse(parts[6].Substring(5, 2));
660660
if (parts.Length > 8)
661661
{
662-
FocStepper = int.Parse(parts[7]);
662+
int focusStepper;
663+
if (int.TryParse(parts[7], out focusStepper))
664+
{
665+
FocStepper = focusStepper;
666+
}
663667
}
664668
}
665669
catch (Exception ex)

0 commit comments

Comments
 (0)