From 4bbcb6a8a1bb859f3596f98b2a240832cdfdf789 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Fri, 25 Oct 2019 21:29:43 +0200 Subject: [PATCH] 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. --- src/descriptor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/descriptor.c b/src/descriptor.c index 824e496..2f8a2e0 100644 --- a/src/descriptor.c +++ b/src/descriptor.c @@ -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;