Browse Source

set WPI_MODE_GPIO as a default mode also for CM4 (#92)

fanoush 3 years ago
parent
commit
10be9486ff
1 changed files with 2 additions and 1 deletions
  1. 2 1
      wiringPi/wiringPi.c

+ 2 - 1
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 ;