Skip to content

Commit b550672

Browse files
committed
Fix IdentifyController example
Whoops. This was calling the 'expected' function rather than the 'controller' function, which was the 'expected' function a short while ago. (automatic refactor go brrrrrr)
1 parent 1a51e35 commit b550672

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/Any/IdentifyController/IdentifyController.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ ExtensionPort controller;
3030

3131
void setup() {
3232
Serial.begin(115200);
33+
while (!Serial); // wait for connection
34+
3335
controller.begin();
3436
controller.connect();
3537

36-
ExtensionType conType = controller.getExpectedType();
38+
ExtensionType conType = controller.getControllerType();
3739

3840
switch (conType) {
3941
case(ExtensionType::NoController):

0 commit comments

Comments
 (0)