mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	BT Discovery: add Shearwater Petrel and Perdix
Add Shearwater Petrel and Perdix to automatic detection Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
		
							parent
							
								
									be8f20dda6
								
							
						
					
					
						commit
						8cd711f8e2
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -26,6 +26,12 @@ static dc_descriptor_t *getDeviceType(QString btName)
 | 
			
		|||
		else product = "OSTC 3"; // all OSTCs are HW_FAMILY_OSTC_3
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (btName.startsWith("Petrel") || btName.startsWith("Perdix")) {
 | 
			
		||||
		vendor = "Shearwater";
 | 
			
		||||
		if (btName.startsWith("Petrel")) product = "Petrel"; // or petrel 2?
 | 
			
		||||
		if (btName.startsWith("Perdix")) product = "Perdix";
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (!vendor.isEmpty() && !product.isEmpty())
 | 
			
		||||
		return(descriptorLookup[vendor + product]);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue