mirror of
https://github.com/mcgurk/Arduino-USB-HID-RetroJoystickAdapter
synced 2024-11-21 16:45:08 -05:00
Update RetroJoystickAdapter_Nunchuck.ino
This commit is contained in:
parent
1fafc37bc3
commit
0b0cf04487
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user