Skip to content

Commit

Permalink
fix build errors for issue #250 on non-avr devices
Browse files Browse the repository at this point in the history
  • Loading branch information
gin66 committed Apr 26, 2024
1 parent 2d3cecc commit 23dbe22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/Issue250/Issue250.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,18 @@ void loop() {
start_ms = millis();
while (millis() < delayForward + start_ms) {
noInterrupts();
#ifdef SIMULATOR
_delay_us(25);
#endif
interrupts();
}
stepper->runBackward();
start_ms = millis();
while (millis() < delayBackward + start_ms) {
noInterrupts();
#ifdef SIMULATOR
_delay_us(25);
#endif
interrupts();
}
if (loopcnt == 200) {
Expand Down

0 comments on commit 23dbe22

Please sign in to comment.