Merge pull request #229 from WiringPi/warnings

Warnings
This commit is contained in:
Manfred Wallner
2024-05-03 21:27:24 +02:00
committed by GitHub
6 changed files with 118 additions and 71 deletions

View File

@@ -536,31 +536,6 @@ const int _0v=-1;
const int _3v=-1;
static int physToSysGPIOPi5 [41] =
{
-1, // 0
_3v, _5v, // 1, 2
401, _5v,
402, _0v,
403, 413,
_0v, 414,
416, 417,
426, _0v,
421, 422,
_3v, 423,
409, _0v,
408, 424,
410, 407,
_0v, 406,
399, 400,
404, _0v,
405, 411,
412, _0v,
418, 415,
425, 419,
_0v, 420, //39, 40
} ;
int GPIOToSysFS(const int pin) {
int sysfspin = pin;
if (RaspberryPiModel<0) { //need to detect pi model