Browse Source

Don't call __delay_4cycles for 0 cycle delay - takes a really long time. (#11586)

pull/1/head
ghent360 6 years ago
committed by Scott Lahteine
parent
commit
00d24a8219
  1. 8
      Marlin/src/HAL/shared/Delay.h

8
Marlin/src/HAL/shared/Delay.h

@ -75,8 +75,8 @@
}
#undef MAXNOPS
}
else
__delay_4cycles(x / 4);
else if ((x >>= 2))
__delay_4cycles(x);
}
#undef nop
@ -114,8 +114,8 @@
#undef MAXNOPS
}
else
__delay_4cycles(x / 4);
else if ((x >>= 2))
__delay_4cycles(x);
}
#undef nop

Loading…
Cancel
Save