|
@@ -3364,8 +3364,12 @@ inline void gcode_G0_G1(
|
3364
|
3364
|
#endif
|
3365
|
3365
|
|
3366
|
3366
|
#if ENABLED(NANODLP_Z_SYNC)
|
3367
|
|
- // If G0/G1 command include Z-axis, wait for move and output sync text.
|
3368
|
|
- if (parser.seenval('Z')) {
|
|
3367
|
+ #if ENABLED(NANODLP_ALL_AXIS)
|
|
3368
|
+ #define _MOVE_SYNC true // For any move wait and output sync message
|
|
3369
|
+ #else
|
|
3370
|
+ #define _MOVE_SYNC parser.seenval('Z') // Only for Z move
|
|
3371
|
+ #endif
|
|
3372
|
+ if (_MOVE_SYNC) {
|
3369
|
3373
|
stepper.synchronize();
|
3370
|
3374
|
SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
|
3371
|
3375
|
}
|
|
@@ -3484,6 +3488,9 @@ inline void gcode_G4() {
|
3484
|
3488
|
if (parser.seenval('S')) dwell_ms = parser.value_millis_from_seconds(); // seconds to wait
|
3485
|
3489
|
|
3486
|
3490
|
stepper.synchronize();
|
|
3491
|
+ #if ENABLED(NANODLP_Z_SYNC)
|
|
3492
|
+ SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
|
|
3493
|
+ #endif
|
3487
|
3494
|
|
3488
|
3495
|
if (!lcd_hasstatus()) LCD_MESSAGEPGM(MSG_DWELL);
|
3489
|
3496
|
|
|
@@ -4155,6 +4162,16 @@ inline void gcode_G28(const bool always_home_all) {
|
4155
|
4162
|
|
4156
|
4163
|
report_current_position();
|
4157
|
4164
|
|
|
4165
|
+ #if ENABLED(NANODLP_Z_SYNC)
|
|
4166
|
+ #if ENABLED(NANODLP_ALL_AXIS)
|
|
4167
|
+ #define _HOME_SYNC true // For any axis, output sync text.
|
|
4168
|
+ #else
|
|
4169
|
+ #define _HOME_SYNC (home_all || homeZ) // Only for Z-axis
|
|
4170
|
+ #endif
|
|
4171
|
+ if (_HOME_SYNC)
|
|
4172
|
+ SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
|
|
4173
|
+ #endif
|
|
4174
|
+
|
4158
|
4175
|
#if ENABLED(DEBUG_LEVELING_FEATURE)
|
4159
|
4176
|
if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("<<< gcode_G28");
|
4160
|
4177
|
#endif
|