diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-09-14 11:25:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-14 11:37:25 -0700 |
commit | b35e1bad8e19b52f4a1da66118bea4e998fb84f6 (patch) | |
tree | 79465f0e8233abfb6d4de0cf520adb29e8ea0587 /libdivecomputer.c | |
parent | b4c84c1a2e2e75815fbc43f06a5bd1846669d48f (diff) | |
download | subsurface-b35e1bad8e19b52f4a1da66118bea4e998fb84f6.tar.gz |
Quick fix to hardcode device name only once
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>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index d2da5381d..06ab06639 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -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; |