Skip to content

Commit

Permalink
Adds check for missing OH58 data from waypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
FalcoGer committed Jun 30, 2024
1 parent 3341721 commit b75c315
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CoordinateConverter/DCS/Aircraft/OH58D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ protected override List<DCSCommand> GetActions(object item)
List<DCSCommand> commands = new List<DCSCommand>();
CoordinateDataEntry coordinate = (CoordinateDataEntry)item;

OH58DSpecificData extraData = (OH58DSpecificData)coordinate.AircraftSpecificData[typeof(OH58D)];
if (!coordinate.AircraftSpecificData.ContainsKey(typeof(OH58D)))
{
coordinate.AircraftSpecificData[typeof(OH58D)] = new OH58DSpecificData(EPointType.Waypoint);
}
OH58DSpecificData extraData = new OH58DSpecificData(EPointType.Waypoint);

commands.Add(new DCSCommand((int)EDeviceCode.LMFD, (int)EKeyCode.MFD_R2, DELAY)); //Nav Setup
switch (extraData.PointType)
{
Expand Down
2 changes: 1 addition & 1 deletion CoordinateConverter/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace CoordinateConverter
/// <seealso cref="Form" />
public partial class MainForm : Form
{
private readonly GitHub.Version VERSION = new GitHub.Version(0, 10, 0);
private readonly GitHub.Version VERSION = new GitHub.Version(0, 10, 1);

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
public static readonly Color ERROR_COLOR = Color.Pink;
Expand Down
4 changes: 2 additions & 2 deletions Installer/Installer.wixproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project Sdk="WixToolset.Sdk/5.0.0">
<PropertyGroup>
<DefineConstants>Version=0.10.0</DefineConstants>
<DefineConstants>Version=0.10.1</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DefineConstants>Version=0.10.5</DefineConstants>
<DefineConstants>Version=0.10.1</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="WixToolset.Netfx.wixext" Version="5.0.0" />
Expand Down

0 comments on commit b75c315

Please sign in to comment.