From b35e1bad8e19b52f4a1da66118bea4e998fb84f6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 14 Sep 2011 11:25:15 -0700 Subject: [PATCH] Quick fix to hardcode device name only once Linus clearly wanted to make SURE that we use /dev/ttyUSB0 Signed-off-by: Dirk Hohndel Signed-off-by: Linus Torvalds --- libdivecomputer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libdivecomputer.c b/libdivecomputer.c index d2da538..06ab066 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; -- 2.45.2