diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-12-13 20:34:56 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-12-13 20:34:56 -0800 |
commit | 4b77a5def6df965cae63dec8b836e18e1e09cd58 (patch) | |
tree | b360828cae21dce1c3cb3640de609dd02d4aa941 /gtk-gui.c | |
parent | 001f6d05dca762de232c68b7ff10fdc999a61514 (diff) | |
download | subsurface-4b77a5def6df965cae63dec8b836e18e1e09cd58.tar.gz |
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>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -913,7 +913,7 @@ static GtkEntry *dive_computer_device(GtkWidget *vbox) entry = gtk_entry_new(); gtk_container_add(GTK_CONTAINER(frame), entry); - gtk_entry_set_text(GTK_ENTRY(entry), "/dev/ttyUSB0"); + gtk_entry_set_text(GTK_ENTRY(entry), subsurface_USB_name()); return GTK_ENTRY(entry); } |