mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2025-12-13 00:08:51 +01:00
Fixed GPIO based address for Pi Zero-W
This commit is contained in:
parent
e8da87fbac
commit
96344ff712
@ -1,5 +1,5 @@
|
|||||||
Package: wiringpi
|
Package: wiringpi
|
||||||
Version: 2.42
|
Version: 2.44
|
||||||
Section: libraries
|
Section: libraries
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Architecture: armhf
|
Architecture: armhf
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
#define VERSION "2.42"
|
#define VERSION "2.44"
|
||||||
#define VERSION_MAJOR 2
|
#define VERSION_MAJOR 2
|
||||||
#define VERSION_MINOR 42
|
#define VERSION_MINOR 44
|
||||||
|
|||||||
@ -2187,9 +2187,10 @@ int wiringPiSetup (void)
|
|||||||
|
|
||||||
switch (model)
|
switch (model)
|
||||||
{
|
{
|
||||||
case PI_MODEL_A: case PI_MODEL_B:
|
case PI_MODEL_A: case PI_MODEL_B:
|
||||||
case PI_MODEL_AP: case PI_MODEL_BP:
|
case PI_MODEL_AP: case PI_MODEL_BP:
|
||||||
case PI_ALPHA: case PI_MODEL_CM: case PI_MODEL_ZERO:
|
case PI_ALPHA: case PI_MODEL_CM:
|
||||||
|
case PI_MODEL_ZERO: case PI_MODEL_ZERO_W:
|
||||||
piGpioBase = GPIO_PERI_BASE_OLD ;
|
piGpioBase = GPIO_PERI_BASE_OLD ;
|
||||||
break ;
|
break ;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user