wok-current diff wiringpi/stuff/gpio-decodePin.patch @ rev 21810

Add python-cffi, python-cparser & python-cryptography
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 17 18:44:53 2019 +0200 (2019-08-17)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wiringpi/stuff/gpio-decodePin.patch	Sat Aug 17 18:44:53 2019 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +--- gpio.c
     1.5 ++++ gpio.slitaz.c
     1.6 +@@ -74,26 +74,6 @@
     1.7 + 	      "       gpio gbr <channel>\n"
     1.8 + 	      "       gpio gbw <channel> <value>" ;	// No trailing newline needed here.
     1.9 + 
    1.10 +-
    1.11 +-/*
    1.12 +- * decodePin:
    1.13 +- *	Decode a pin "number" which can actually be a pin name to represent
    1.14 +- *	one of the Pi's on-board pins.
    1.15 +- *********************************************************************************
    1.16 +- */
    1.17 +-
    1.18 +-static int decodePin (const char *str)
    1.19 +-{
    1.20 +-
    1.21 +-// The first case - see if it's a number:
    1.22 +-
    1.23 +-  if (isdigit (str [0]))
    1.24 +-    return atoi (str) ;
    1.25 +-
    1.26 +-  return 0 ;
    1.27 +-}
    1.28 +-
    1.29 +-
    1.30 + /*
    1.31 +  * changeOwner:
    1.32 +  *	Change the ownership of the file to the real userId of the calling