From 4b77a5def6df965cae63dec8b836e18e1e09cd58 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 13 Dec 2011 20:34:56 -0800 Subject: 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 --- macos.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'macos.c') diff --git a/macos.c b/macos.c index b48f20d87..0b64e19a0 100644 --- a/macos.c +++ b/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"); +} -- cgit v1.2.3-70-g09d2