Browse Source

Return from loop() on non-AVR boards (#16390)

pull/1/head
Lino Barreca 5 years ago
committed by Scott Lahteine
parent
commit
ac32ed74b4
  1. 12
      Marlin/src/Marlin.cpp

12
Marlin/src/Marlin.cpp

@ -1128,10 +1128,9 @@ void setup() {
* - Call inactivity manager
*/
void loop() {
do {
for (;;) {
idle(); // Do an idle first so boot is slightly faster
idle();
#if ENABLED(SDSUPPORT)
card.checkautostart();
@ -1141,5 +1140,10 @@ void loop() {
queue.advance();
endstops.event_handler();
}
} while (false // Return to caller for best compatibility
#ifdef __AVR__
|| true // Loop forever on slower (AVR) boards
#endif
);
}

Loading…
Cancel
Save