Skip to content

Commit

Permalink
Fix #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine committed Jan 13, 2018
1 parent e0d0085 commit 3a7b128
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions MSI-LED-Custom/LedManager/LedManager_AMD_Front.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions MSI-LED-Custom/LedManager/LedManager_AMD_Side.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions MSI-LED-Custom/LedManager/LedManager_NVD_Front.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions MSI-LED-Custom/LedManager/LedManager_NVD_Side.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
}
Expand All @@ -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();
Expand Down

0 comments on commit 3a7b128

Please sign in to comment.