mirror of
				https://github.com/Klipper3d/klipper.git
				synced 2025-11-03 20:05:49 +01:00 
			
		
		
		
	gcode: Ack even empty lines
An empty input line should still return an "ok" message. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
		@@ -150,8 +150,8 @@ class GCodeParser:
 | 
				
			|||||||
                # Skip line number at start of command
 | 
					                # Skip line number at start of command
 | 
				
			||||||
                del parts[:2]
 | 
					                del parts[:2]
 | 
				
			||||||
            if not parts:
 | 
					            if not parts:
 | 
				
			||||||
                self.cmd_default(params)
 | 
					                # Treat empty line as empty command
 | 
				
			||||||
                continue
 | 
					                parts = ['', '']
 | 
				
			||||||
            params['#command'] = cmd = parts[0] + parts[1].strip()
 | 
					            params['#command'] = cmd = parts[0] + parts[1].strip()
 | 
				
			||||||
            # Invoke handler for command
 | 
					            # Invoke handler for command
 | 
				
			||||||
            self.need_ack = need_ack
 | 
					            self.need_ack = need_ack
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user