V2 Extended NanoDLP_Z_Move_Sync to G4 & G28,Added all axis option.
This commit is contained in:
		@@ -78,8 +78,12 @@ void GcodeSuite::G0_G1(
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    #if ENABLED(NANODLP_Z_SYNC)
 | 
			
		||||
      // If G0/G1 command include Z-axis, wait for move and output sync text.
 | 
			
		||||
      if (parser.seenval('Z')) {
 | 
			
		||||
      #if ENABLED(NANODLP_ALL_AXIS)
 | 
			
		||||
        #define _MOVE_SYNC true                 // For any move wait and output sync message
 | 
			
		||||
      #else
 | 
			
		||||
        #define _MOVE_SYNC parser.seenval('Z')  // Only for Z move
 | 
			
		||||
      #endif
 | 
			
		||||
      if (_MOVE_SYNC) {
 | 
			
		||||
        stepper.synchronize();
 | 
			
		||||
        SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,9 @@ void GcodeSuite::G4() {
 | 
			
		||||
  if (parser.seenval('S')) dwell_ms = parser.value_millis_from_seconds(); // seconds to wait
 | 
			
		||||
 | 
			
		||||
  stepper.synchronize();
 | 
			
		||||
  #if ENABLED(NANODLP_Z_SYNC)
 | 
			
		||||
    SERIAL_ECHOLNPGM(MSG_Z_MOVE_COMP);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  if (!lcd_hasstatus()) LCD_MESSAGEPGM(MSG_DWELL);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user