Browse Source

#17

pull/188/head
mstroh76 9 months ago
parent
commit
49997b9568
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      wiringPi/wiringPi.c

+ 1
- 0
wiringPi/wiringPi.c View File

@@ -1417,6 +1417,7 @@ void pwmSetMode (int mode)

void pwmSetRange (unsigned int range)
{
FailOnModel5();
if ((wiringPiMode == WPI_MODE_PINS) || (wiringPiMode == WPI_MODE_PHYS) || (wiringPiMode == WPI_MODE_GPIO))
{
*(pwm + PWM0_RANGE) = range ; delayMicroseconds (10) ;


Loading…
Cancel
Save