From c4c2250debe7c794f01c5c7c78fc4f094a6357bf Mon Sep 17 00:00:00 2001 From: schneider Date: Mon, 19 Dec 2011 20:59:03 +0100 Subject: [PATCH] init: removed bad c code --- firmware/basic/basic.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/basic/basic.c b/firmware/basic/basic.c index 9ebfdbd..1dc9d3f 100644 --- a/firmware/basic/basic.c +++ b/firmware/basic/basic.c @@ -51,7 +51,8 @@ void rbInit() { int i = 0; while( i<8 ){ gpioSetDir(ports[i],ports[i+1], gpioDirection_Output); - gpioSetValue (ports[i++], ports[i++], 0); + gpioSetValue (ports[i], ports[i+1], 0); + i+=2; } // Set LED3 to ? @@ -78,7 +79,8 @@ void rbInit() { // prepare hackerbus while(i