aboutsummaryrefslogtreecommitdiff
path: root/NucLedController/LEDTransition.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/LEDTransition.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/LEDTransition.cs')
-rw-r--r--NucLedController/LEDTransition.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/NucLedController/LEDTransition.cs b/NucLedController/LEDTransition.cs
index 6f226ee..d965158 100644
--- a/NucLedController/LEDTransition.cs
+++ b/NucLedController/LEDTransition.cs
@@ -28,8 +28,12 @@ namespace NucLedController
public override string ToString()
{
- return this.Identifier + this.ByteValue;
+ return Identifier + ByteValue;
}
+ public static LEDTransition getLEDTransition(string identifier)
+ {
+ return AvailableTransitions.Find(c => c.Identifier == identifier);
+ }
}
}