From e7c5bac6410b217dcd1871746a63f025a374afdb Mon Sep 17 00:00:00 2001 From: Nelson Neves Date: Tue, 13 Nov 2012 17:55:23 +0000 Subject: [PATCH] Use the proper button alias BUTTON_PIN to the system instruction --- examples/wfi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/wfi.c b/examples/wfi.c index 459d8c1..cbd7eb7 100644 --- a/examples/wfi.c +++ b/examples/wfi.c @@ -112,7 +112,9 @@ void setup (void) // Use the gpio program to initialise the hardware // (This is the crude, but effective bit) - system ("gpio edge 0 falling") ; + char cmd[80] ; + sprintf (cmd, "gpio edge %d falling", BUTTON_PIN) ; + system (cmd) ; system ("gpio export 17 out") ; system ("gpio export 18 out") ;