1
0
mirror of https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter synced 2024-11-24 18:12:19 -05:00

Update RetroJoystickAdapter_Nunchuck.ino

This commit is contained in:
Jarno Lehtinen 2016-11-11 16:43:26 +02:00 committed by GitHub
parent 1fafc37bc3
commit 0b0cf04487

View File

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