From 8df5c15db91a057322c98f7e7fe43d504528eff9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 27 Oct 2020 15:08:49 -0700 Subject: [PATCH] Garmin: add the Descent Mk2/Mk2i Just like for the Descent Mk1 this uses the internal Garmin model number (as indicated in the FIT format) as model, not the USB product ID. Signed-off-by: Dirk Hohndel --- src/descriptor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/descriptor.c b/src/descriptor.c index 806dbc3..51349a1 100644 --- a/src/descriptor.c +++ b/src/descriptor.c @@ -406,8 +406,10 @@ static const dc_descriptor_t g_descriptors[] = { {"Liquivision", "Kaon", DC_FAMILY_LIQUIVISION_LYNX, 3, DC_TRANSPORT_SERIAL, NULL}, // Not merged upstream yet - /* Garmin */ + /* Garmin -- model numbers as defined in FIT format; USB product id is (0x4000 | model) */ + /* for the Mk2 we are using the model of the global model - the APAC model is 3702 */ {"Garmin", "Descent Mk1", DC_FAMILY_GARMIN, 2859, DC_TRANSPORT_USBSTORAGE, dc_filter_garmin}, + {"Garmin", "Descent Mk2/Mk2i", DC_FAMILY_GARMIN, 3258, DC_TRANSPORT_USBSTORAGE, dc_filter_garmin}, /* Deepblu */ {"Deepblu", "Cosmiq+", DC_FAMILY_DEEPBLU, 0, DC_TRANSPORT_BLE, dc_filter_deepblu}, /* Oceans S1 */