aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuredivecomputerthreads.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2016-09-17 17:27:56 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-09-17 15:47:37 -0700
commitffa3c4859327a78288cfb74e633ac3845a86ed86 (patch)
tree2576d8a298875a750f7b05ba9bd5bfebdeff9335 /core/configuredivecomputerthreads.cpp
parent1219dc693170e4a04fff992bd5aed990674779c1 (diff)
downloadsubsurface-ffa3c4859327a78288cfb74e633ac3845a86ed86.tar.gz
Rewrite libdivecomputer custom serial code
This rewrites the custom serial code to use the new api which I implemented in the Subsurface-branch of libdivecomputer. This is a bit to big patch but I haven't had the time to break it down into more sensible patches. This rewrite enables us to support more ftdi based divecomputer communication and is tested with both a OSTC3, OSTC2N and a Suunto Vyper, all over the libftdi driver. The bluetooth code paths are tested to, and should work as before. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/configuredivecomputerthreads.cpp')
-rw-r--r--core/configuredivecomputerthreads.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/configuredivecomputerthreads.cpp b/core/configuredivecomputerthreads.cpp
index c86c0966c..33791d737 100644
--- a/core/configuredivecomputerthreads.cpp
+++ b/core/configuredivecomputerthreads.cpp
@@ -100,16 +100,6 @@ static dc_status_t local_dc_device_open(dc_device_t **out, dc_context_t *context
}
#define dc_device_open local_dc_device_open
-// Fake the custom open function
-static dc_status_t local_dc_device_custom_open(dc_device_t **out, dc_context_t *context, dc_descriptor_t *descriptor, dc_serial_t *serial)
-{
- if (strcmp(dc_descriptor_get_vendor(descriptor), "Heinrichs Weikamp") == 0 &&strcmp(dc_descriptor_get_product(descriptor), "OSTC 2N") == 0)
- return DC_STATUS_SUCCESS;
- else
- return dc_device_custom_open(out, context, descriptor, serial);
-}
-#define dc_device_custom_open local_dc_device_custom_open
-
static dc_status_t local_hw_ostc_device_eeprom_read(void *ignored, unsigned char bank, unsigned char data[], unsigned int data_size)
{
FILE *f;