mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX: fix crash when no sec_link
Change-Id: I41aa905b0dcac3d5b162fea5b19a1d2c6aa72b68 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
		
							parent
							
								
									aa6785bde4
								
							
						
					
					
						commit
						4174f361f1
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -3888,7 +3888,10 @@ void DeviceManager::on_machine_alive(std::string json_str) | |||
|         std::string printer_signal  = j["dev_signal"].get<std::string>(); | ||||
|         std::string connect_type    = j["connect_type"].get<std::string>(); | ||||
|         std::string bind_state      = j["bind_state"].get<std::string>(); | ||||
|         std::string sec_link        = j["sec_link"].get<std::string>(); | ||||
|         std::string sec_link = ""; | ||||
|         if (j.contains("sec_link")) { | ||||
|             sec_link = j["sec_link"].get<std::string>(); | ||||
|         } | ||||
| 
 | ||||
|         MachineObject* obj; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stone Li
						Stone Li