fix syntax for non-C99 mode

This commit is contained in:
Lysann Schlegel
2012-11-15 10:59:17 +01:00
parent 5a2b31afbe
commit 11466cd19d
2 changed files with 4 additions and 2 deletions

View File

@@ -295,9 +295,10 @@ void test(struct wiimote_t* wm, byte* data, unsigned short len) {
}
short any_wiimote_connected(wiimote** wm, int wiimotes) {
int i;
if(!wm) return 0;
for(int i = 0; i < wiimotes; i++) {
for(i = 0; i < wiimotes; i++) {
if(wm[i] && WIIMOTE_IS_CONNECTED(wm[i]))
return 1;
}