mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed build on Linux
This commit is contained in:
		
							parent
							
								
									ab00f501f1
								
							
						
					
					
						commit
						2bbd916ccc
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -339,11 +339,10 @@ bool Mouse3DController::connect_device() | |||
|         return false; | ||||
| 
 | ||||
|     // check time since last detection took place
 | ||||
|     auto now = std::chrono::high_resolution_clock::now(); | ||||
|     if (std::chrono::duration_cast<std::chrono::seconds>(now - m_last_time).count() < DETECTION_TIME) | ||||
|     if (std::chrono::duration_cast<std::chrono::seconds>(std::chrono::high_resolution_clock::now() - m_last_time).count() < DETECTION_TIME) | ||||
|         return false; | ||||
| 
 | ||||
|     m_last_time = now; | ||||
|     m_last_time = std::chrono::high_resolution_clock::now(); | ||||
| 
 | ||||
|     // Enumerates devices
 | ||||
|     hid_device_info* devices = hid_enumerate(0, 0); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri