diff --git a/src/device.c b/src/device.c index 7c98605..cb19c8e 100644 --- a/src/device.c +++ b/src/device.c @@ -229,7 +229,7 @@ dc_device_open (dc_device_t **out, dc_context_t *context, dc_descriptor_t *descr // Not merged upstream yet case DC_FAMILY_GARMIN: - rc = garmin_device_open (&device, context, iostream); + rc = garmin_device_open (&device, context, iostream, dc_descriptor_get_model (descriptor)); break; case DC_FAMILY_DEEPBLU: rc = deepblu_device_open (&device, context, iostream); diff --git a/src/garmin.c b/src/garmin.c index 67c8713..aba013b 100644 --- a/src/garmin.c +++ b/src/garmin.c @@ -58,7 +58,7 @@ static const dc_device_vtable_t garmin_device_vtable = { }; dc_status_t -garmin_device_open (dc_device_t **out, dc_context_t *context, dc_iostream_t *iostream) +garmin_device_open (dc_device_t **out, dc_context_t *context, dc_iostream_t *iostream, unsigned int model) { dc_status_t status = DC_STATUS_SUCCESS; garmin_device_t *device = NULL; diff --git a/src/garmin.h b/src/garmin.h index 221e3e5..0b1c208 100644 --- a/src/garmin.h +++ b/src/garmin.h @@ -32,7 +32,7 @@ extern "C" { #endif /* __cplusplus */ dc_status_t -garmin_device_open (dc_device_t **device, dc_context_t *context, dc_iostream_t *iostream); +garmin_device_open (dc_device_t **device, dc_context_t *context, dc_iostream_t *iostream, unsigned int model); dc_status_t garmin_parser_create (dc_parser_t **parser, dc_context_t *context);