From 3a7b128efdb394be17908162e01ca81fe1db199f Mon Sep 17 00:00:00 2001 From: Antoine Date: Sat, 13 Jan 2018 17:17:47 +0100 Subject: [PATCH] Fix #4 --- MSI-LED-Custom/LedManager/LedManager_AMD_Front.cs | 12 ++++++------ MSI-LED-Custom/LedManager/LedManager_AMD_Side.cs | 12 ++++++------ MSI-LED-Custom/LedManager/LedManager_NVD_Front.cs | 12 ++++++------ MSI-LED-Custom/LedManager/LedManager_NVD_Side.cs | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/MSI-LED-Custom/LedManager/LedManager_AMD_Front.cs b/MSI-LED-Custom/LedManager/LedManager_AMD_Front.cs index 96c8b5d..2c71e5f 100644 --- a/MSI-LED-Custom/LedManager/LedManager_AMD_Front.cs +++ b/MSI-LED-Custom/LedManager/LedManager_AMD_Front.cs @@ -95,7 +95,7 @@ protected override void UpdateLed_Breathing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 27, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 27, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -104,7 +104,7 @@ protected override void UpdateLed_DoubleFlashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 30, 4, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 30, 4, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -113,7 +113,7 @@ protected override void UpdateLed_Flashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 28, 4, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 28, 4, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -122,7 +122,7 @@ protected override void UpdateLed_NoAnimation() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -131,7 +131,7 @@ protected override void UpdateLed_Off() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 24, 4, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 24, 4, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -150,7 +150,7 @@ protected override void UpdateLed_TemperatureBased() for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } } mutex.ReleaseMutex(); diff --git a/MSI-LED-Custom/LedManager/LedManager_AMD_Side.cs b/MSI-LED-Custom/LedManager/LedManager_AMD_Side.cs index f1c5e16..20519a5 100644 --- a/MSI-LED-Custom/LedManager/LedManager_AMD_Side.cs +++ b/MSI-LED-Custom/LedManager/LedManager_AMD_Side.cs @@ -95,7 +95,7 @@ protected override void UpdateLed_NoAnimation() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -104,7 +104,7 @@ protected override void UpdateLed_Breathing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 27, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 27, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -113,7 +113,7 @@ protected override void UpdateLed_Flashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 28, 1, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 28, 1, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -122,7 +122,7 @@ protected override void UpdateLed_DoubleFlashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 30, 1, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 30, 1, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -131,7 +131,7 @@ protected override void UpdateLed_Off() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 24, 1, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 24, 1, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -150,7 +150,7 @@ protected override void UpdateLed_TemperatureBased() for (int i = 0; i < this.adapterIndexes.Count; i++) { - _ADL.ADL_SetIlluminationParm_RGB(i, 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _ADL.ADL_SetIlluminationParm_RGB(adapterIndexes[i], 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } } mutex.ReleaseMutex(); diff --git a/MSI-LED-Custom/LedManager/LedManager_NVD_Front.cs b/MSI-LED-Custom/LedManager/LedManager_NVD_Front.cs index 30983d3..4a6a030 100644 --- a/MSI-LED-Custom/LedManager/LedManager_NVD_Front.cs +++ b/MSI-LED-Custom/LedManager/LedManager_NVD_Front.cs @@ -95,7 +95,7 @@ protected override void UpdateLed_NoAnimation() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -104,7 +104,7 @@ protected override void UpdateLed_Breathing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 27, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 27, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -113,7 +113,7 @@ protected override void UpdateLed_Flashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 28, 4, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 28, 4, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -122,7 +122,7 @@ protected override void UpdateLed_DoubleFlashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 30, 4, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 30, 4, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -131,7 +131,7 @@ protected override void UpdateLed_Off() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 24, 4, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 24, 4, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -150,7 +150,7 @@ protected override void UpdateLed_TemperatureBased() for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 21, 4, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } } mutex.ReleaseMutex(); diff --git a/MSI-LED-Custom/LedManager/LedManager_NVD_Side.cs b/MSI-LED-Custom/LedManager/LedManager_NVD_Side.cs index 578d6ff..b3baaae 100644 --- a/MSI-LED-Custom/LedManager/LedManager_NVD_Side.cs +++ b/MSI-LED-Custom/LedManager/LedManager_NVD_Side.cs @@ -95,7 +95,7 @@ protected override void UpdateLed_NoAnimation() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -104,7 +104,7 @@ protected override void UpdateLed_Breathing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 27, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 27, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -113,7 +113,7 @@ protected override void UpdateLed_Flashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 28, 1, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 28, 1, 0, 100, 100, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -122,7 +122,7 @@ protected override void UpdateLed_DoubleFlashing() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 30, 1, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 30, 1, 0, 10, 15, 4, 2, 0, ledColor.R, ledColor.G, ledColor.B, false); } this.PatientlyWait(); } @@ -131,7 +131,7 @@ protected override void UpdateLed_Off() { for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 24, 1, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 24, 1, 0, 0, 0, 0, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } this.PatientlyWait(); } @@ -150,7 +150,7 @@ protected override void UpdateLed_TemperatureBased() for (int i = 0; i < this.adapterIndexes.Count; i++) { - _NDA.NDA_SetIlluminationParmColor_RGB(i, 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); + _NDA.NDA_SetIlluminationParmColor_RGB(adapterIndexes[i], 21, 1, 0, 0, 0, 4, 0, 0, ledColor.R, ledColor.G, ledColor.B, true); } } mutex.ReleaseMutex();