mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	FIX:compatible with v6 printers
Change-Id: If89c57393a27232a5be41efaf95e70568b4b1f46
This commit is contained in:
		
							parent
							
								
									842515a15b
								
							
						
					
					
						commit
						4ee5dbb07f
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -2339,7 +2339,7 @@ int MachineObject::parse_json(std::string payload) | |||
|                     else { | ||||
|                         if (jj.contains("cooling_fan_speed")) { | ||||
|                             cooling_fan_speed = stoi(jj["cooling_fan_speed"].get<std::string>()); | ||||
|                             cooling_fan_speed = round(floor(cooling_fan_speed / float(1.5))); | ||||
|                             cooling_fan_speed = round( floor(cooling_fan_speed / float(1.5)) * float(25.5) ); | ||||
|                         } | ||||
|                         else { | ||||
|                             cooling_fan_speed = 0; | ||||
|  | @ -2347,7 +2347,7 @@ int MachineObject::parse_json(std::string payload) | |||
| 
 | ||||
|                         if (jj.contains("big_fan1_speed")) { | ||||
|                             big_fan1_speed = stoi(jj["big_fan1_speed"].get<std::string>()); | ||||
|                             big_fan1_speed = round(floor(big_fan1_speed / float(1.5))); | ||||
|                             big_fan1_speed = round( floor(big_fan1_speed / float(1.5)) * float(25.5) ); | ||||
|                         } | ||||
|                         else { | ||||
|                             big_fan1_speed = 0; | ||||
|  | @ -2355,7 +2355,7 @@ int MachineObject::parse_json(std::string payload) | |||
| 
 | ||||
|                         if (jj.contains("big_fan2_speed")) { | ||||
|                             big_fan2_speed = stoi(jj["big_fan2_speed"].get<std::string>()); | ||||
|                             big_fan2_speed = round(floor(big_fan2_speed / float(1.5))); | ||||
|                             big_fan2_speed = round( floor(big_fan2_speed / float(1.5)) * float(25.5) ); | ||||
|                         } | ||||
|                         else { | ||||
|                             big_fan2_speed = 0; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tao wang
						tao wang