mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Bugfix: use P instead of S for Mach3 for M106 too. #286
This commit is contained in:
		
							parent
							
								
									7a786844f6
								
							
						
					
					
						commit
						e3a9adae4d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -349,7 +349,8 @@ sub set_fan { | ||||||
|         if ($speed == 0) { |         if ($speed == 0) { | ||||||
|             return sprintf "M107%s\n", ($Slic3r::gcode_comments ? ' ; disable fan' : ''); |             return sprintf "M107%s\n", ($Slic3r::gcode_comments ? ' ; disable fan' : ''); | ||||||
|         } else { |         } else { | ||||||
|             return sprintf "M106 S%d%s\n", (255 * $speed / 100), ($Slic3r::gcode_comments ? ' ; enable fan' : ''); |             return sprintf "M106 %s%d%s\n", ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), | ||||||
|  |                 (255 * $speed / 100), ($Slic3r::gcode_comments ? ' ; enable fan' : ''); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     return ""; |     return ""; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci