From 9074cc8964be6afb86fec2c3377e00b8797cba74 Mon Sep 17 00:00:00 2001 From: Firobe Date: Thu, 8 May 2014 18:16:30 +0200 Subject: [PATCH] PULSE_TIME wasn't used. --- wiringPi/softPwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiringPi/softPwm.c b/wiringPi/softPwm.c index b568dfb..6187b85 100644 --- a/wiringPi/softPwm.c +++ b/wiringPi/softPwm.c @@ -74,11 +74,11 @@ static PI_THREAD (softPwmThread) if (mark != 0) digitalWrite (pin, HIGH) ; - delayMicroseconds (mark * 100) ; + delayMicroseconds (mark * PULSE_TIME) ; if (space != 0) digitalWrite (pin, LOW) ; - delayMicroseconds (space * 100) ; + delayMicroseconds (space * PULSE_TIME) ; } return NULL ;