Skip to content

Commit

Permalink
fix build errors due to unused variable in Issue208.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
gin66 committed Nov 20, 2023
1 parent 7b5ffe5 commit ae0e425
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/Issue208/Issue208.ino
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ void setup() {
bool pass = test();
stepper->stopMove();

#ifndef SIMULATOR
if (pass) {
Serial.print("PASS");
}
else {
Serial.print("FAIL");
}
#endif

#ifdef SIMULATOR
// if result is Ok. Toggle port twice, otherwise once
#define PIN stepPinStepperB
Expand Down

0 comments on commit ae0e425

Please sign in to comment.