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:
deadprogram 2020-09-16 07:19:00 +02:00 committed by Ayke
parent 2e26f4cdc7
commit 69aae6c6b9

View file

@ -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")
} }