aboutsummaryrefslogtreecommitdiff
path: root/NucLedController/FadeColourCyclerControlMode.cs
diff options
context:
space:
mode:
authorJames Barnett <james.barnett@fivium.co.uk>2017-08-29 12:21:38 +0100
committerJames Barnett <james.barnett@fivium.co.uk>2017-08-29 12:21:38 +0100
commit87ebd4bc76c85cd0f954b0e39c2e2757abff6b48 (patch)
tree6172feb7ab8643158d8bd7481d35635e65716e1c /NucLedController/FadeColourCyclerControlMode.cs
parentf51203de8436052c04b4c733a910791ed1d4e3f7 (diff)
downloadintel-nuc-led-controller-0.3.tar.xz
intel-nuc-led-controller-0.3.zip
Add CPU utilisaiton indicator modev0.3
Diffstat (limited to 'NucLedController/FadeColourCyclerControlMode.cs')
-rw-r--r--NucLedController/FadeColourCyclerControlMode.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/NucLedController/FadeColourCyclerControlMode.cs b/NucLedController/FadeColourCyclerControlMode.cs
index ba982ca..9beed18 100644
--- a/NucLedController/FadeColourCyclerControlMode.cs
+++ b/NucLedController/FadeColourCyclerControlMode.cs
@@ -39,7 +39,7 @@ namespace NucLedController
private void Tick(object source, ElapsedEventArgs e)
{
- LEDController.SetLEDState(LEDTransition.AvailableTransitions.Find(t => t.Identifier.ToString() == "ALWAYS_ON"), LEDColour.AvailableColours.ElementAt(currentColourIndex), currentBrightness);
+ LEDController.SetLEDState(LEDTransition.getLEDTransition("ALWAYS_ON"), LEDColour.AvailableColours.ElementAt(currentColourIndex), currentBrightness);
// TODO more of the fade duration should be spent at the lower brightness levels, since the perceived change in brightness is much more apparent at the bottom end.
// e.g. the perceived difference between 0x10 and 0x20 is much larger than 0x50 and 0x60, so scaling up linearly wastes a lot of time increasing imperceivable brightness changes at the top of the range.