mirror of
				https://github.com/Klipper3d/klipper.git
				synced 2025-11-03 20:05:49 +01:00 
			
		
		
		
	pins: Strip pin names before trying to parse them
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
		@@ -201,7 +201,7 @@ class PrinterPins:
 | 
			
		||||
    def lookup_pin(self, pin_type, pin_desc, share_type=None):
 | 
			
		||||
        can_invert = pin_type in ['stepper', 'endstop', 'digital_out', 'pwm']
 | 
			
		||||
        can_pullup = pin_type == 'endstop'
 | 
			
		||||
        desc = pin_desc
 | 
			
		||||
        desc = pin_desc.strip()
 | 
			
		||||
        pullup = invert = 0
 | 
			
		||||
        if can_pullup and desc.startswith('^'):
 | 
			
		||||
            pullup = 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user