V2 Extended NanoDLP_Z_Move_Sync to G4 & G28,Added all axis option.

This commit is contained in:
robpower
2017-12-15 20:34:41 +01:00
committed by Scott Lahteine
parent 2b7db90340
commit 5595098063
4 changed files with 24 additions and 5 deletions

View File

@ -325,6 +325,15 @@ void GcodeSuite::G28(const bool always_home_all) {
lcd_refresh();
report_current_position();
#if ENABLED(NANODLP_Z_SYNC)
#if ENABLED(NANODLP_ALL_AXIS)
#define _HOME_SYNC true // For any axis, output sync text.
#else
#define _HOME_SYNC (home_all || homeZ) // Only for Z-axis
#endif
if (_HOME_SYNC)
SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
#endif
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< G28");