From 87ebd4bc76c85cd0f954b0e39c2e2757abff6b48 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 29 Aug 2017 12:21:38 +0100 Subject: Add CPU utilisaiton indicator mode --- NucLedController/LEDTransition.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'NucLedController/LEDTransition.cs') 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); + } } } -- cgit v1.2.3