Skip to content

Commit

Permalink
Merge branch 'bug/pwm' into feature/iapp
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke committed Jun 20, 2024
2 parents a7b0959 + 3853669 commit 1346837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Meadow.Core/Hardware/SoftPwmPort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public TimeSpan Duration
/// <summary>
/// Period of PWM
/// </summary>
public float Period
public double Period
{
get => 1 / (float)frequency.Hertz;
set => frequency = new Frequency(1 / value, Units.Frequency.UnitType.Hertz);
Expand All @@ -45,7 +45,7 @@ public float Period
/// <summary>
/// Duty cycle of PWM
/// </summary>
public float DutyCycle
public double DutyCycle
{
get => dutyCycle;
set
Expand All @@ -56,7 +56,7 @@ public float DutyCycle
}
}

private float dutyCycle;
private double dutyCycle;

/// <summary>
/// Frequency of soft PWM
Expand Down

0 comments on commit 1346837

Please sign in to comment.