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 --- linux.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'linux.c') diff --git a/linux.c b/linux.c index 2edcf85a1..e26b3acbd 100644 --- a/linux.c +++ b/linux.c @@ -46,3 +46,8 @@ void subsurface_close_conf(void) { /* this is a no-op */ } + +const char *subsurface_USB_name() +{ + return("/dev/ttyUSB0"); +} -- cgit v1.2.3-70-g09d2