mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2025-12-13 00:08:51 +01:00
PULSE_TIME wasn't used.
This commit is contained in:
parent
ddf1b3ffaa
commit
9074cc8964
@ -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 ;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user