From 10be9486ffbaf0337aefb3033e342bc24e3fc0f6 Mon Sep 17 00:00:00 2001 From: fanoush Date: Tue, 30 Mar 2021 17:47:47 +0200 Subject: [PATCH] set WPI_MODE_GPIO as a default mode also for CM4 (#92) --- wiringPi/wiringPi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index b311165..d45f83f 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -2284,7 +2284,8 @@ int wiringPiSetup (void) if ((model == PI_MODEL_CM) || (model == PI_MODEL_CM3) || - (model == PI_MODEL_CM3P)) + (model == PI_MODEL_CM3P) || + (model == PI_MODEL_CM4)) wiringPiMode = WPI_MODE_GPIO ; else wiringPiMode = WPI_MODE_PINS ;