From c213e051c67c179a8176c51f676934712562cff7 Mon Sep 17 00:00:00 2001 From: Gordon Henderson Date: Sat, 18 Aug 2012 12:04:46 +0100 Subject: [PATCH] Added some comments about removing the call to pullUpDnControl() in pinMode () --- wiringPi/wiringPi.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index fb5e7c6..0a4da30 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -401,9 +401,15 @@ void pinModeGpio (int pin, int mode) } // When we change mode of any pin, we remove the pull up/downs - -// delayMicroseconds (300) ; +// Or we used to... Hm. Commented out now because for some wieird reason, +// it seems to block subsequent attempts to set the pull up/downs and I've +// not quite gotten to the bottom of why this happens +// The down-side is that the pull up/downs are rememberd in the SoC between +// power cycles, so it's going to be a good idea to explicitly set them in +// any new code. +// // pullUpDnControl (pin, PUD_OFF) ; + } void pinModeWPi (int pin, int mode)