Adjust usage of stepper.synchronize
This commit is contained in:
@ -58,6 +58,8 @@ void GcodeSuite::M0_M1() {
|
||||
|
||||
const bool has_message = !hasP && !hasS && args && *args;
|
||||
|
||||
stepper.synchronize();
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
|
||||
if (has_message)
|
||||
@ -81,8 +83,6 @@ void GcodeSuite::M0_M1() {
|
||||
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
||||
wait_for_user = true;
|
||||
|
||||
stepper.synchronize();
|
||||
|
||||
if (ms > 0) {
|
||||
ms += millis(); // wait until this time for a click
|
||||
while (PENDING(millis(), ms) && wait_for_user) idle();
|
||||
|
Reference in New Issue
Block a user