aboutsummaryrefslogtreecommitdiff
path: root/NucLedController/LEDTransition.cs
diff options
context:
space:
mode:
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);
+ }
}
}