mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	iOS: only DC_TRANSPORT_BLE is supported
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									387aee4cdf
								
							
						
					
					
						commit
						e6cb98ea4b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -1231,6 +1231,10 @@ static char *transport_to_string(int t) | |||
|  */ | ||||
| unsigned int get_supported_transports(device_data_t *data) | ||||
| { | ||||
| #if defined(Q_OS_IOS) | ||||
| 	// BLE only - don't bother with being clever.
 | ||||
| 	return DC_TRANSPORT_BLE; | ||||
| #endif | ||||
| 	// start out with the list of transports that libdivecomputer claims to support
 | ||||
| 	// dc_context_get_transports ignores its context argument...
 | ||||
| 	unsigned int supported = dc_context_get_transports(NULL); | ||||
|  | @ -1242,10 +1246,6 @@ unsigned int get_supported_transports(device_data_t *data) | |||
| #if defined(BLE_SUPPORT) | ||||
| 	supported |= DC_TRANSPORT_BLE; | ||||
| #endif | ||||
| #if defined(Q_OS_IOS) | ||||
| 	// libdivecomputer always claims to support serial, but on iOS we actually don't support that
 | ||||
| 	supported &= ~DC_TRANSPORT_SERIAL; | ||||
| #endif | ||||
| 
 | ||||
| 	if (data) { | ||||
| 		/*
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue