Ver código fonte

PULSE_TIME wasn't used.

pull/19/head
Firobe 10 anos atrás
pai
commit
9074cc8964
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      wiringPi/softPwm.c

+ 2
- 2
wiringPi/softPwm.c Ver arquivo

@@ -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 ;


Carregando…
Cancelar
Salvar