mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
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>
This commit is contained in:
parent
b4c84c1a2e
commit
b35e1bad8e
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue