Skip to content

Commit

Permalink
Merge pull request #586 from WildernessLabs/bugfix/rgbpwmled-fix
Browse files Browse the repository at this point in the history
RgbPwmLed PulseDuration fix
  • Loading branch information
adrianstevens authored Mar 31, 2023
2 parents 558edce + 73d03ff commit bea6934
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/Meadow.Foundation.Core/Leds/RgbPwmLed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,6 @@ public void StartPulse(Color color, float highBrightness = 1, float lowBrightnes
/// <param name="lowBrightness"></param>
public void StartPulse(Color color, TimeSpan pulseDuration, float highBrightness = 1, float lowBrightness = 0.15F)
{
pulseDuration = TimeSpan.FromMilliseconds(600);

if (highBrightness > 1 || highBrightness <= 0)
{
throw new ArgumentOutOfRangeException(nameof(highBrightness), "onBrightness must be > 0 and <= 1");
Expand Down

0 comments on commit bea6934

Please sign in to comment.