Skip to content

Commit 8e9cce5

Browse files
committed
Fix ClassicController example reconnect function
This function is going to be removed from the next NintendoExtensionCtrl library release. Preemptively removing it here.
1 parent a203b7b commit 8e9cce5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

examples/WiiClassicController/WiiClassicController.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ void loop() {
7676
// XInput.setButton(BUTTON_R3, classic.buttonZR()); // but you can uncomment these to check that they work
7777
}
7878
else { // Data is bad :(
79-
XInput.releaseAll();
80-
classic.reconnect();
79+
XInput.releaseAll(); // clear set inputs
80+
classic.connect(); // attempt to reconnect
81+
delay(1000);
8182
}
8283

8384
XInput.send();

0 commit comments

Comments
 (0)