Skip to content

Commit 2752b40

Browse files
committed
Fixed EsploraKart example.........
1 parent b32ed2d commit 2752b40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Esplora/examples/EsploraKart/EsploraKart.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ void loop() {
102102
linked to the buttons we're handling.
103103
*/
104104
if (newState == PRESSED) {
105-
Keyboard.press(keystrokes[i]);
105+
Keyboard.press(keystrokes[thisButton]);
106106
}
107107
else if (newState == RELEASED) {
108-
Keyboard.release(keystrokes[i]);
108+
Keyboard.release(keystrokes[thisButton]);
109109
}
110110
}
111111

112112
// Store the new button state, so you can sense a difference later:
113-
buttonStates[i] = newState;
113+
buttonStates[thisButton] = newState;
114114
}
115115

116116
/*

0 commit comments

Comments
 (0)