mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
FTDI support: ignore case when comparing magic device name
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
822b88ab3d
commit
88a9b8abf5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue