Skip to content

Commit 5d321de

Browse files
authored
Merge pull request #62 from mikeller/remove_garmin_filter
2 parents 9f2674e + ff0023b commit 5d321de

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/descriptor.c

+2-17
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,8 @@ static const dc_descriptor_t g_descriptors[] = {
474474
/* for the Mk1 we are using the model of the global model */
475475
/* for the Mk2/Mk3 we are using the model of the Mk2 global model */
476476
/* see garmin_parser.c for a more comprehensive list of models */
477-
{"Garmin", "Descent Mk1", DC_FAMILY_GARMIN, 2859, DC_TRANSPORT_USBSTORAGE, dc_filter_garmin},
478-
{"Garmin", "Descent Mk2(i)/Mk3(i)", DC_FAMILY_GARMIN, 3258, DC_TRANSPORT_USBSTORAGE, dc_filter_garmin},
477+
{"Garmin", "Descent Mk1", DC_FAMILY_GARMIN, 2859, DC_TRANSPORT_USBSTORAGE, NULL},
478+
{"Garmin", "Descent Mk2(i)/Mk3(i)", DC_FAMILY_GARMIN, 3258, DC_TRANSPORT_USBSTORAGE, NULL},
479479
{"FIT", "File import", DC_FAMILY_GARMIN, 0, DC_TRANSPORT_USBSTORAGE, NULL },
480480
};
481481

@@ -858,21 +858,6 @@ dc_filter_divesoft (dc_descriptor_t *descriptor, dc_transport_t transport, const
858858
return 1;
859859
}
860860

861-
// Not merged upstream yet
862-
static int
863-
dc_filter_garmin (dc_descriptor_t *descriptor, dc_transport_t transport, const void *userdata)
864-
{
865-
static const dc_usb_desc_t usbhid[] = {
866-
{0x091e, 0x2b2b}, // Garmin Descent Mk1
867-
};
868-
869-
if (transport == DC_TRANSPORT_USBSTORAGE) {
870-
return DC_FILTER_INTERNAL (userdata, usbhid, 0, dc_match_usb);
871-
}
872-
873-
return 1;
874-
}
875-
876861
dc_status_t
877862
dc_descriptor_iterator (dc_iterator_t **out)
878863
{

0 commit comments

Comments
 (0)