Skip to content

Commit 905cd60

Browse files
authored
Merge pull request #5 from kevbite/feature/issue4
Removing deprecated properties and adding in new ones. #4
2 parents 9873176 + 3af61d7 commit 905cd60

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: Build and Test
77
runs-on: ubuntu-latest
88
env:
9-
VERSION: 1.0.${{ github.run_number }}
9+
VERSION: 2.0.${{ github.run_number }}
1010
steps:
1111
- uses: actions/checkout@master
1212

src/Kevsoft.WLED/LedsResponse.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@ public sealed class LedsResponse
1515
public byte Fps { get; set; }
1616

1717
/// <summary>
18-
/// true if LEDs are 4-channel (RGBW).
18+
/// Logical AND of all active segment's virtual light capabilities
1919
/// </summary>
20-
[JsonPropertyName("rgbw")]
21-
public bool Rgbw { get; set; }
22-
23-
/// <summary>
24-
/// true if a white channel slider should be displayed. (available since 0.10.0)
25-
/// </summary>
26-
[JsonPropertyName("wv")]
27-
public bool DisplayWhiteSlider { get; set; }
20+
[JsonPropertyName("lc")]
21+
public byte LightCapabilities { get; set; }
2822

2923
/// <summary>
3024
/// Current LED power usage in milliamps as determined by the ABL. 0 if ABL is disabled.

test/Kevsoft.WLED.Tests/JsonBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public static string CreateInformationJson(InformationResponse information)
5656
""leds"": {{
5757
""count"": {information.Leds.Count},
5858
""fps"": {information.Leds.Fps},
59-
""rgbw"": {information.Leds.Rgbw.ToString().ToLower()},
60-
""wv"": {information.Leds.DisplayWhiteSlider.ToString().ToLower()},
59+
""lc"": {information.Leds.LightCapabilities},
6160
""pwr"": {information.Leds.PowerUsage},
6261
""maxpwr"": {information.Leds.MaximumPower},
6362
""maxseg"": {information.Leds.MaximumSegments}

0 commit comments

Comments
 (0)