diff options
| author | James Barnett <james.barnett@fivium.co.uk> | 2017-08-29 12:21:38 +0100 |
|---|---|---|
| committer | James Barnett <james.barnett@fivium.co.uk> | 2017-08-29 12:21:38 +0100 |
| commit | 87ebd4bc76c85cd0f954b0e39c2e2757abff6b48 (patch) | |
| tree | 6172feb7ab8643158d8bd7481d35635e65716e1c /NucLedController/LEDColour.cs | |
| parent | f51203de8436052c04b4c733a910791ed1d4e3f7 (diff) | |
| download | intel-nuc-led-controller-0.3.tar.xz intel-nuc-led-controller-0.3.zip | |
Add CPU utilisaiton indicator modev0.3
Diffstat (limited to 'NucLedController/LEDColour.cs')
| -rw-r--r-- | NucLedController/LEDColour.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/NucLedController/LEDColour.cs b/NucLedController/LEDColour.cs index 68fb22c..e512ef9 100644 --- a/NucLedController/LEDColour.cs +++ b/NucLedController/LEDColour.cs @@ -28,7 +28,12 @@ namespace NucLedController public override string ToString() { - return this.Identifier + this.ByteValue; + return Identifier + ByteValue; + } + + public static LEDColour getLEDColour(string identifier) + { + return AvailableColours.Find(c => c.Identifier == identifier); } } } |