init: removed bad c code

This commit is contained in:
schneider 2011-12-19 20:59:03 +01:00
parent c301baa98f
commit c4c2250deb
1 changed files with 4 additions and 2 deletions

View File

@ -51,7 +51,8 @@ void rbInit() {
int i = 0; int i = 0;
while( i<8 ){ while( i<8 ){
gpioSetDir(ports[i],ports[i+1], gpioDirection_Output); 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 ? // Set LED3 to ?
@ -78,7 +79,8 @@ void rbInit() {
// prepare hackerbus // prepare hackerbus
while(i<sizeof(ports)){ while(i<sizeof(ports)){
gpioSetDir(ports[i],ports[i+1], gpioDirection_Output); gpioSetDir(ports[i],ports[i+1], gpioDirection_Output);
gpioSetValue (ports[i++], ports[i++], 1); gpioSetValue (ports[i], ports[i+1], 1);
i+=2;
} }
// prepare BUSINT interrupt // prepare BUSINT interrupt