From 49997b956849cd5dba23b8cba0cd4624577f3b94 Mon Sep 17 00:00:00 2001 From: mstroh76 Date: Sat, 17 Feb 2024 13:40:29 +0100 Subject: [PATCH] #17 --- wiringPi/wiringPi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index baf5d86..d181944 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -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) ;