diff options
author | 2018-11-18 17:27:14 +0100 | |
---|---|---|
committer | 2019-01-22 12:52:06 +1300 | |
commit | ad7f4e8656e267fe7aaa296b84dc6adb7be2998d (patch) | |
tree | b52eea8c1ba780bf4ccf9477216996cf927a5228 /core/serial_ftdi.c | |
parent | df1586da22ebd84d7a19efb65290837b8a2b7f9a (diff) | |
download | subsurface-ad7f4e8656e267fe7aaa296b84dc6adb7be2998d.tar.gz |
Fix Cressi interface ftdi opening bug
The Cressi specific PID was not used
when serial_ftdi_open_device tried
to open the device.
Reported-by: Daniel Krupp
Signed-off-by: Daniel Krupp <daniel.krupp@gmail.com>
Diffstat (limited to 'core/serial_ftdi.c')
-rw-r--r-- | core/serial_ftdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/serial_ftdi.c b/core/serial_ftdi.c index 084fb230f..89f48f01d 100644 --- a/core/serial_ftdi.c +++ b/core/serial_ftdi.c @@ -156,7 +156,7 @@ static int serial_ftdi_open_device (struct ftdi_context *ftdi_ctx) 0xF680, // Suunto 0x87D0, // Cressi (Leonardo) }; - int num_accepted_pids = 6; + int num_accepted_pids = sizeof(accepted_pids) / sizeof(accepted_pids[0]); int i, pid, ret; for (i = 0; i < num_accepted_pids; i++) { pid = accepted_pids[i]; |