From 3853669d115a177764ea2f81de14e538fbd13f80 Mon Sep 17 00:00:00 2001 From: Chris Tacke Date: Thu, 20 Jun 2024 11:27:39 -0500 Subject: [PATCH] softwpm props are now doubles --- source/Meadow.Core/Hardware/SoftPwmPort.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Meadow.Core/Hardware/SoftPwmPort.cs b/source/Meadow.Core/Hardware/SoftPwmPort.cs index bed91fb4..1062cd48 100644 --- a/source/Meadow.Core/Hardware/SoftPwmPort.cs +++ b/source/Meadow.Core/Hardware/SoftPwmPort.cs @@ -30,7 +30,7 @@ public TimeSpan Duration /// /// Period of PWM /// - public float Period + public double Period { get => 1 / (float)frequency.Hertz; set => frequency = new Frequency(1 / value, Units.Frequency.UnitType.Hertz); @@ -45,7 +45,7 @@ public float Period /// /// Duty cycle of PWM /// - public float DutyCycle + public double DutyCycle { get => dutyCycle; set @@ -56,7 +56,7 @@ public float DutyCycle } } - private float dutyCycle; + private double dutyCycle; /// /// Frequency of soft PWM