From c48056300d61987850dbe9ad92b20a293d03dc75 Mon Sep 17 00:00:00 2001 From: Daniel Krupp Date: Sun, 18 Nov 2018 17:27:14 +0100 Subject: 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 --- core/serial_ftdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/serial_ftdi.c') 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]; -- cgit v1.2.3-70-g09d2