mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Add reasonable default device names for divecomputer import
So far we hard coded /dev/ttyUSB0 - which is a good starting point in Linux but not so useful on Windows or MacOS. This was now moved into one of our OS helper functions with (somewhat) reasonable defaults. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									001f6d05dc
								
							
						
					
					
						commit
						4b77a5def6
					
				
					 5 changed files with 18 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								macos.c
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								macos.c
									
										
									
									
									
								
							|  | @ -89,3 +89,8 @@ void subsurface_close_conf(void) | |||
| 	CFRelease(xmlData); | ||||
| 	CFRelease(propertyList); | ||||
| } | ||||
| 
 | ||||
| const char *subsurface_USB_name() | ||||
| { | ||||
| 	return("/dev/tty.SLAB_USBtoUART"); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue