This commit is contained in:
mstroh76
2024-02-17 13:40:29 +01:00
parent 107b9ee4c2
commit 49997b9568

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