gattc/linux: correct false positive error when using DiscoverServices with a specific list of UUID
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
2e26f4cdc7
commit
69aae6c6b9
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func (d *Device) DiscoverServices(uuids []UUID) ([]DeviceService, error) {
|
||||||
uuidServices[service.Properties.UUID] = service.Properties.UUID
|
uuidServices[service.Properties.UUID] = service.Properties.UUID
|
||||||
}
|
}
|
||||||
|
|
||||||
if servicesFound <= len(uuids) {
|
if servicesFound < len(uuids) {
|
||||||
return nil, errors.New("bluetooth: could not find some services")
|
return nil, errors.New("bluetooth: could not find some services")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue