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

This commit is contained in:
fanoush 2021-03-30 17:47:47 +02:00 committed by GitHub
parent 22fac72e1a
commit 10be9486ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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