mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2026-03-18 18:02:49 +01:00
set WPI_MODE_GPIO as a default mode also for CM4 (#92)
This commit is contained in:
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user