From 71198119cf5ef0e6a29b316ba234ead382ec8c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 9 Oct 2013 10:46:28 +0200 Subject: [PATCH] Make sure the led is always on. --- diode_controller/led.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diode_controller/led.c b/diode_controller/led.c index c32f26a..67f7342 100755 --- a/diode_controller/led.c +++ b/diode_controller/led.c @@ -56,12 +56,12 @@ int main(int argc, char* argv[]) //Turn on led while (1) { - printf("Enable LED\n"); + //printf("Enable LED\n"); GPIO_SET(GPIO_4); usleep(1000000); - printf("Disable GPIO\n"); // Does not seem to work? - GPIO_CLR(GPIO_4); - usleep(1000000); + //printf("Disable GPIO\n"); // Does not seem to work? + //GPIO_CLR(GPIO_4); + //usleep(1000000); } /* Free up ressources */ /* munmap GPIO */