kopia lustrzana https://github.com/gnea/grbl
				
				
				
			Homing stepper enable bit fix.
							rodzic
							
								
									32963289fe
								
							
						
					
					
						commit
						d8ca4176bf
					
				
							
								
								
									
										6
									
								
								limits.c
								
								
								
								
							
							
						
						
									
										6
									
								
								limits.c
								
								
								
								
							| 
						 | 
				
			
			@ -160,6 +160,9 @@ void limits_go_home()
 | 
			
		|||
{
 | 
			
		||||
  plan_synchronize();  // Empty all motions in buffer.
 | 
			
		||||
  
 | 
			
		||||
  // Enable steppers by resetting the stepper disable port
 | 
			
		||||
  STEPPERS_DISABLE_PORT &= ~(1<<STEPPERS_DISABLE_BIT);
 | 
			
		||||
  
 | 
			
		||||
  // Jog all axes toward home to engage their limit switches at faster homing seek rate.
 | 
			
		||||
  homing_cycle(false, false, true, true, false, settings.homing_seek_rate); // First jog the z axis
 | 
			
		||||
  homing_cycle(true, true, false, true, false, settings.homing_seek_rate);   // Then jog the x and y axis
 | 
			
		||||
| 
						 | 
				
			
			@ -179,4 +182,7 @@ void limits_go_home()
 | 
			
		|||
      delay_ms(settings.homing_debounce_delay);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // Disable steppers by setting stepper disable
 | 
			
		||||
  STEPPERS_DISABLE_PORT |= (1<<STEPPERS_DISABLE_BIT);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								print.c
								
								
								
								
							
							
						
						
									
										4
									
								
								print.c
								
								
								
								
							| 
						 | 
				
			
			@ -79,7 +79,7 @@ void print_uint8_base2(uint8_t n)
 | 
			
		|||
 | 
			
		||||
static void print_uint32_base10(unsigned long n)
 | 
			
		||||
{ 
 | 
			
		||||
  unsigned char buf[32]; 
 | 
			
		||||
  unsigned char buf[10]; 
 | 
			
		||||
  uint8_t i = 0;
 | 
			
		||||
  
 | 
			
		||||
  if (n == 0) {
 | 
			
		||||
| 
						 | 
				
			
			@ -105,7 +105,7 @@ void printInteger(long n)
 | 
			
		|||
  print_uint32_base10(n);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void printFloat(float n)
 | 
			
		||||
void printFloat(double n)
 | 
			
		||||
{
 | 
			
		||||
  if (n < 0) {
 | 
			
		||||
    serial_write('-');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue