1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-29 05:16:51 +01:00

VESC: added name matching for Coordinator#supports

This commit is contained in:
Daniel Dakhno 2023-10-06 13:13:09 +02:00
parent 0854263233
commit 17a9aa3b20

View File

@ -70,6 +70,9 @@ public class VescCoordinator extends AbstractBLEDeviceCoordinator {
@Override
public boolean supports(GBDeviceCandidate candidate) {
if(!candidate.getName().toLowerCase().contains("vesc")){
return false;
}
ParcelUuid[] uuids = candidate.getServiceUuids();
for(ParcelUuid uuid : uuids){
if(uuid.getUuid().toString().equals(UUID_SERVICE_SERIAL_NRF)){