Add the Mares Genius to the bluetooth filter

Use the prefix matcher because the bluetooth device name of the Mares
Genius appears to contain spaces at the end.
This commit is contained in:
Jef Driesen 2019-10-25 21:29:43 +02:00
parent 4c91309c56
commit 4bbcb6a8a1

View File

@ -565,10 +565,11 @@ static int dc_filter_mares (dc_transport_t transport, const void *userdata)
{
static const char * const bluetooth[] = {
"Mares bluelink pro",
"Mares Genius",
};
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;