mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fix value passed to SPEED in air-filteration.md macro. (#3133)
Fix value passed to SPEED The SPEED parameter of SET_FAN_SPEED needs to be between 0.0 and 1.0. Since the S param, which is between 0 and 255, was being passed as is to SPEED, it effectively resulted in the target fan running at 100% if any value > 0 was passed to M106.
This commit is contained in:
		
							parent
							
								
									3ca290d503
								
							
						
					
					
						commit
						de0f5c9d1e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -29,7 +29,7 @@ hardware_pwm: false | |||
| [gcode_macro M106] | ||||
| gcode: | ||||
|     {% set fan = 'fan' + (params.P|int if params.P is defined else 0)|string %} | ||||
|     {% set speed = (params.S|int if params.S is defined else 255) %} | ||||
|     {% set speed = (params.S|float / 255 if params.S is defined else 1.0) %} | ||||
|     SET_FAN_SPEED FAN={fan} SPEED={speed} | ||||
| 
 | ||||
| ``` | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 IntenseWiggling
						IntenseWiggling