From 41b24adfcbfec961c198bf31a2456196a4560e01 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 6 Sep 2019 11:54:50 +0200 Subject: [PATCH] Use a prefix match for the Suunto bluetooth name The Suunto D5 bluetooth device name contains the serial number. Thus we need to match only the prefix, instead of the full name. --- src/descriptor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/descriptor.c b/src/descriptor.c index 2a05036..65105f3 100644 --- a/src/descriptor.c +++ b/src/descriptor.c @@ -503,7 +503,7 @@ static int dc_filter_suunto (dc_transport_t transport, const void *userdata) if (transport == DC_TRANSPORT_USBHID) { return DC_FILTER_INTERNAL (userdata, usbhid, 0, dc_match_usb); } else if (transport == DC_TRANSPORT_BLE) { - return DC_FILTER_INTERNAL (userdata, bluetooth, 0, dc_match_name); + return DC_FILTER_INTERNAL (userdata, bluetooth, 0, dc_match_prefix); } return 1;