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.
This commit is contained in:
Jef Driesen 2019-09-06 11:54:50 +02:00
parent ffeb6b2447
commit 41b24adfcb

View File

@ -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;