diff --git a/src/device.c b/src/device.c index 2fbcc30..2f3e1af 100644 --- a/src/device.c +++ b/src/device.c @@ -124,7 +124,7 @@ dc_device_open (dc_device_t **out, dc_context_t *context, dc_descriptor_t *descr rc = suunto_d9_device_open (&device, context, name, dc_descriptor_get_model (descriptor)); break; case DC_FAMILY_SUUNTO_EONSTEEL: - rc = suunto_eonsteel_device_open (&device, context, name, dc_descriptor_get_model (descriptor)); + rc = suunto_eonsteel_device_open (&device, context); break; case DC_FAMILY_UWATEC_ALADIN: rc = uwatec_aladin_device_open (&device, context, name); @@ -166,7 +166,7 @@ dc_device_open (dc_device_t **out, dc_context_t *context, dc_descriptor_t *descr rc = mares_darwin_device_open (&device, context, name, dc_descriptor_get_model (descriptor)); break; case DC_FAMILY_MARES_ICONHD: - rc = mares_iconhd_device_open (&device, context, name, dc_descriptor_get_model (descriptor)); + rc = mares_iconhd_device_open (&device, context, name); break; case DC_FAMILY_HW_OSTC: rc = hw_ostc_device_open (&device, context, name); diff --git a/src/mares_iconhd.c b/src/mares_iconhd.c index c78acf7..9a2179c 100644 --- a/src/mares_iconhd.c +++ b/src/mares_iconhd.c @@ -209,7 +209,7 @@ mares_iconhd_transfer (mares_iconhd_device_t *device, dc_status_t -mares_iconhd_device_open (dc_device_t **out, dc_context_t *context, const char *name, unsigned int model) +mares_iconhd_device_open (dc_device_t **out, dc_context_t *context, const char *name) { dc_status_t status = DC_STATUS_SUCCESS; mares_iconhd_device_t *device = NULL; diff --git a/src/mares_iconhd.h b/src/mares_iconhd.h index bd4b193..b762843 100644 --- a/src/mares_iconhd.h +++ b/src/mares_iconhd.h @@ -31,7 +31,7 @@ extern "C" { #endif /* __cplusplus */ dc_status_t -mares_iconhd_device_open (dc_device_t **device, dc_context_t *context, const char *name, unsigned int model); +mares_iconhd_device_open (dc_device_t **device, dc_context_t *context, const char *name); dc_status_t mares_iconhd_parser_create (dc_parser_t **parser, dc_context_t *context, unsigned int model); diff --git a/src/suunto_eonsteel.c b/src/suunto_eonsteel.c index 58197ac..615f5c7 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -547,7 +547,7 @@ static int initialize_eonsteel(suunto_eonsteel_device_t *eon) } dc_status_t -suunto_eonsteel_device_open(dc_device_t **out, dc_context_t *context, const char *name, unsigned int model) +suunto_eonsteel_device_open(dc_device_t **out, dc_context_t *context) { dc_status_t status = DC_STATUS_SUCCESS; suunto_eonsteel_device_t *eon = NULL; diff --git a/src/suunto_eonsteel.h b/src/suunto_eonsteel.h index 4d34478..98763c9 100644 --- a/src/suunto_eonsteel.h +++ b/src/suunto_eonsteel.h @@ -31,7 +31,7 @@ extern "C" { #endif /* __cplusplus */ dc_status_t -suunto_eonsteel_device_open(dc_device_t **device, dc_context_t *context, const char *name, unsigned int model); +suunto_eonsteel_device_open(dc_device_t **device, dc_context_t *context); dc_status_t suunto_eonsteel_parser_create(dc_parser_t **parser, dc_context_t *context, unsigned int model);