Browse Source

#16

pull/188/head
mstroh76 9 months ago
parent
commit
bde772c4b0
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      wiringPi/wiringPi.c
  2. +2
    -0
      wiringPi/wiringPi.h

+ 1
- 1
wiringPi/wiringPi.c View File

@@ -494,7 +494,7 @@ static int physToSysGPIOPi5 [41] =
_0v, 420, //39, 40
} ;

static int GPIOToSysFS(const int pin) {
int GPIOToSysFS(const int pin) {
int sysfspin = pin;
if (RaspberryPiModel<0) { //need to detect pi model
int model, rev, mem, maker, overVolted ;


+ 2
- 0
wiringPi/wiringPi.h View File

@@ -203,6 +203,8 @@ extern int wiringPiFailure (int fatal, const char *message, ...) ;
extern struct wiringPiNodeStruct *wiringPiFindNode (int pin) ;
extern struct wiringPiNodeStruct *wiringPiNewNode (int pinBase, int numPins) ;

extern int GPIOToSysFS(const int pin) ;

extern void wiringPiVersion (int *major, int *minor) ;
extern int wiringPiSetup (void) ;
extern int wiringPiSetupSys (void) ;


Loading…
Cancel
Save