Update RetroJoystickAdapter_Nunchuck.ino

pull/6/head
Jarno Lehtinen 2016-11-11 16:43:26 +02:00 committed by GitHub
parent 1fafc37bc3
commit 0b0cf04487
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void loop() {
while(Wire.available()) {
Joystick[0].data[i] = Wire.read();
i++;
if (i > JOYSTICK_DATA_SIZE) break;
if (i >= JOYSTICK_DATA_SIZE) break;
}
//detect if init is needed