Skip to content

Commit

Permalink
set WPI_MODE_GPIO as a default mode also for CM4 (WiringPi#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanoush authored Mar 30, 2021
1 parent 22fac72 commit 10be948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down

0 comments on commit 10be948

Please sign in to comment.