Sfoglia il codice sorgente

Merge pull request #19 from Firobe/patch-1

PULSE_TIME wasn't used.
pull/44/head
Philip Howard 8 anni fa
parent
commit
39d53628e6
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      wiringPi/softPwm.c

+ 2
- 2
wiringPi/softPwm.c Vedi File

@@ -83,11 +83,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 ;


Caricamento…
Annulla
Salva