Browse Source

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

pull/111/head
fanoush 3 years ago
committed by GitHub
parent
commit
10be9486ff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      wiringPi/wiringPi.c

+ 2
- 1
wiringPi/wiringPi.c View File

@@ -2284,7 +2284,8 @@ int wiringPiSetup (void)


if ((model == PI_MODEL_CM) || if ((model == PI_MODEL_CM) ||
(model == PI_MODEL_CM3) || (model == PI_MODEL_CM3) ||
(model == PI_MODEL_CM3P))
(model == PI_MODEL_CM3P) ||
(model == PI_MODEL_CM4))
wiringPiMode = WPI_MODE_GPIO ; wiringPiMode = WPI_MODE_GPIO ;
else else
wiringPiMode = WPI_MODE_PINS ; wiringPiMode = WPI_MODE_PINS ;


Loading…
Cancel
Save