incyclist-devices 1.4.75 → 1.4.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ble/ble-interface.js +1 -1
- package/package.json +1 -1
package/lib/ble/ble-interface.js
CHANGED
|
@@ -368,7 +368,7 @@ class BleInterface extends ble_1.BleInterfaceClass {
|
|
|
368
368
|
this.logEvent({ message: 'trying to create device', peripheral: peripheral.address, characteristics: cids, profile: device.getProfile() });
|
|
369
369
|
const existingDevice = this.devices.find(i => i.device.id === device.id && i.device.getProfile() === device.getProfile());
|
|
370
370
|
if (existingDevice)
|
|
371
|
-
return existingDevice;
|
|
371
|
+
return existingDevice.device;
|
|
372
372
|
device.setInterface(this);
|
|
373
373
|
if (characteristics && device.isMatching(cids)) {
|
|
374
374
|
device.characteristics = characteristics;
|