From: Dirk Hohndel Date: Wed, 14 Sep 2011 18:25:15 +0000 (-0700) Subject: Quick fix to hardcode device name only once X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b35e1bad8e19b52f4a1da66118bea4e998fb84f6;p=ext%2Fsubsurface.git 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 --- 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;