Implement NANODLP_Z_SYNC for 2.0.x

This commit is contained in:
Scott Lahteine
2017-11-24 00:28:06 -06:00
parent 4d517d169a
commit dc82babe8e
36 changed files with 349 additions and 0 deletions

View File

@ -72,5 +72,13 @@ void GcodeSuite::G0_G1(
#else
prepare_move_to_destination();
#endif
#if ENABLED(NANODLP_Z_SYNC)
// If G0/G1 command include Z-axis, wait for move and output sync text.
if (parser.seenval('Z')) {
stepper.synchronize();
SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
}
#endif
}
}