]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Quick fix to hardcode device name only once
authorDirk Hohndel <dirk@hohndel.org>
Wed, 14 Sep 2011 18:25:15 +0000 (11:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Sep 2011 18:37:25 +0000 (11:37 -0700)
Linus clearly wanted to make SURE that we use /dev/ttyUSB0

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
libdivecomputer.c

index d2da5381d8bd71edb34005460e8f1a6e26bdd97c..06ab066392d6462f5d44941a3d729460b6941d4e 100644 (file)
@@ -434,12 +434,10 @@ cancel_cb(void *userdata)
 
 static void do_import(device_data_t *data)
 {
-       /* FIXME! Needs user input! */
-       const char *devname = "/dev/ttyUSB0";
        device_t *device = NULL;
        device_status_t rc;
 
-       rc = device_open(devname, data->type, &device);
+       rc = device_open(data->devname, data->type, &device);
        if (rc != DEVICE_STATUS_SUCCESS) {
                error("Unable to open %s (%s)", data->name, data->devname);
                return;