mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	ENH:add some protection for fan control
Change-Id: Ic60deaec60b5238f9307b7b4bb928293701c2fd5
This commit is contained in:
		
							parent
							
								
									03819e6f86
								
							
						
					
					
						commit
						c6e49af3fe
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -394,7 +394,7 @@ void FanControl::command_control_fan() | |||
| { | ||||
|     if (m_current_speed < 0 || m_current_speed > 10) { return; } | ||||
|     int speed = floor(m_current_speed * float(25.5)); | ||||
|     if (m_update_already) { | ||||
|     if (m_update_already && m_obj) { | ||||
|         m_obj->command_control_fan_val(m_type, speed); | ||||
|         post_event(wxCommandEvent(EVT_FAN_CHANGED)); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tao wang
						tao wang