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:
parent
0854263233
commit
17a9aa3b20
@ -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)){
|
||||
|
Loading…
Reference in New Issue
Block a user