Skip to content

Commit

Permalink
Fix: AH64d Dcsbios correct type (#439)
Browse files Browse the repository at this point in the history
Co-authored-by: Cerppo <[email protected]>
  • Loading branch information
landre-cerp and landre-cerp authored Dec 2, 2023
1 parent bd4a519 commit aabfdf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
1 change: 1 addition & 0 deletions Source/NonVisuals/CockpitMaster/Panels/CDU737PanelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ protected override void Dispose(bool disposing)
{
if (disposing)
{
InitPanel();
_displayCDUTimer.Stop();
_displayCDUTimer.Dispose();
}
Expand Down
20 changes: 3 additions & 17 deletions Source/NonVisuals/CockpitMaster/Preprogrammed/CDU737PanelAH64D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public class CDU737PanelAH64D : CDU737PanelBase , IDCSBIOSStringListener
private DCSBIOSOutput _PLT_EUFD_LINE12;
private DCSBIOSOutput _PLT_EUFD_LINE14;

private DCSBIOSOutput _PLT_MASTER_IGN_SW;
private DCSBIOSOutput _PLT_EUFD_BRT;

// Lights
Expand All @@ -52,8 +51,7 @@ public override void InitPanel()

_PLT_KU_DISPLAY = DCSBIOSControlLocator.GetStringDCSBIOSOutput("PLT_KU_DISPLAY");

_PLT_MASTER_IGN_SW = DCSBIOSControlLocator.GetStringDCSBIOSOutput("PLT_MASTER_IGN_SW");
_PLT_EUFD_BRT = DCSBIOSControlLocator.GetStringDCSBIOSOutput("PLT_EUFD_BRT");
_PLT_EUFD_BRT = DCSBIOSControlLocator.GetUIntDCSBIOSOutput("PLT_EUFD_BRT");

// UFD Upper status

Expand All @@ -76,7 +74,7 @@ public override void InitPanel()

_PLT_EUFD_LINE14 = DCSBIOSControlLocator.GetStringDCSBIOSOutput("PLT_EUFD_LINE14");

_PLT_MASTER_WARNING_L = DCSBIOSControlLocator.GetStringDCSBIOSOutput("PLT_MASTER_WARNING_L");
_PLT_MASTER_WARNING_L = DCSBIOSControlLocator.GetUIntDCSBIOSOutput("PLT_MASTER_WARNING_L");

BIOSEventHandler.AttachStringListener(this);
BIOSEventHandler.AttachDataListener(this);
Expand Down Expand Up @@ -111,6 +109,7 @@ protected override void Dispose(bool disposing)
base.Dispose(disposing);
}



protected override void GamingPanelKnobChanged(bool isFirstReport, IEnumerable<object> hashSet)
{
Expand Down Expand Up @@ -147,19 +146,6 @@ public override void DcsBiosDataReceived(object sender, DCSBIOSDataEventArgs e)

UpdateCounter(e.Address, e.Data);

/* (shouldUpdate, newValue) = ShouldHandleDCSBiosData(e, _PLT_MASTER_IGN_SW);
if (shouldUpdate)
{
if (newValue == 0)
{
ScreenBrightness = 0;
KeyboardBrightness = 0;
}
displayBufferOnCDU();
}*/

( shouldUpdate, newValue) = ShouldHandleDCSBiosData(e, _PLT_EUFD_BRT);

if (shouldUpdate)
Expand Down

0 comments on commit aabfdf6

Please sign in to comment.