mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Only output M109 if there's none in user-supplied start G-code
This commit is contained in:
		
							parent
							
								
									0afb5ad9dd
								
							
						
					
					
						commit
						13e573a8e4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -597,7 +597,8 @@ sub export_gcode { | |||
|     printf $fh "%s\n", Slic3r::Config->replace_options($Slic3r::start_gcode); | ||||
|     printf $fh "M109 %s%d ; wait for temperature to be reached\n",  | ||||
|         ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $Slic3r::first_layer_temperature | ||||
|             if $Slic3r::first_layer_temperature && $Slic3r::gcode_flavor ne 'makerbot'; | ||||
|             if $Slic3r::first_layer_temperature && $Slic3r::gcode_flavor ne 'makerbot' | ||||
|                 && $Slic3r::start_gcode !~ /M109/i; | ||||
|     print  $fh "G90 ; use absolute coordinates\n"; | ||||
|     print  $fh "G21 ; set units to millimeters\n"; | ||||
|     if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup)$/) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci