Browse Source

Replacing PWM pulse delay's hardcoded value from 100 to macro PULSE_TIME

pull/179/head
obtronyt 1 year ago
parent
commit
b1a7892c96
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      wiringPi/softPwm.c

+ 2
- 2
wiringPi/softPwm.c View File

@@ -87,11 +87,11 @@ static void *softPwmThread (void *arg)

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…
Cancel
Save