From 4eea4634dddaaeb686ff96f184b08905ca5e2a5b Mon Sep 17 00:00:00 2001 From: mstroh76 Date: Wed, 1 May 2024 20:31:21 +0200 Subject: [PATCH] #210 --- wiringPi/wiringPi.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index f3f8020..1d802bd 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -553,21 +553,6 @@ int piBoard() { return RaspberryPiModel<0 ? 0 : 1; } -int GPIOToSysFS(const int pin) { - int sysfspin = pin; - piBoard(); - if (PI_MODEL_5 == RaspberryPiModel) { - sysfspin = pin + 399; - if (sysfspin<399 || sysfspin>426) { // only 399-426 supported, 40-pin GPIO header - sysfspin = -1; - } - } - if (wiringPiDebug) - printf ("GPIOToSysFS: translate bcm gpio %d to sysfs gpio %d\n", pin, sysfspin) ; - - return sysfspin; -} - int GetMaxPin() { return PI_MODEL_5 == RaspberryPiModel ? 27 : 63; }