aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-13 15:14:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-15 10:30:33 +1200
commit88a9b8abf54f74f44fb709326c551019143cb135 (patch)
treeeecc69f9b503e6827a55fa2ab4d63bd34d9c874c
parent822b88ab3d77499f90f2cbd5dadd4252a5e4a537 (diff)
downloadsubsurface-88a9b8abf54f74f44fb709326c551019143cb135.tar.gz
FTDI support: ignore case when comparing magic device name
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--core/libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c
index aeca1b94c..bb70f50a2 100644
--- a/core/libdivecomputer.c
+++ b/core/libdivecomputer.c
@@ -1297,7 +1297,7 @@ dc_status_t divecomputer_device_open(device_data_t *data)
if (transports & DC_TRANSPORT_SERIAL) {
#ifdef SERIAL_FTDI
- if (!strcmp(data->devname, "ftdi"))
+ if (!strcasecmp(data->devname, "ftdi"))
return ftdi_open(&data->iostream, context);
#endif
rc = dc_serial_open(&data->iostream, context, data->devname);