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