mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2026-03-24 04:43:00 +01:00
Fixed the Compute Module 4 pin mode setting. The CM4 is equal to RB4 std platform, not CM3 family as it turned out.
This commit is contained in:
@@ -2284,8 +2284,7 @@ int wiringPiSetup (void)
|
||||
|
||||
if ((model == PI_MODEL_CM) ||
|
||||
(model == PI_MODEL_CM3) ||
|
||||
(model == PI_MODEL_CM3P) ||
|
||||
(model == PI_MODEL_CM4))
|
||||
(model == PI_MODEL_CM3P))
|
||||
wiringPiMode = WPI_MODE_GPIO ;
|
||||
else
|
||||
wiringPiMode = WPI_MODE_PINS ;
|
||||
|
||||
Reference in New Issue
Block a user