Skip to content

Commit 1da06f9

Browse files
author
dbaba
committed
Fix an issue where this would be undefined as _addDashes was unbound
1 parent 212e06c commit 1da06f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/noble/lib/bluez/bindings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class BluezBindings extends EventEmitter {
308308
`[${deviceUuid}] Collecting characteristsics for the service ${serviceUuid}`
309309
);
310310
const dashedCharacteristicUuids = (characteristicUuids || []).map(
311-
this._addDashes
311+
this._addDashes.bind(this)
312312
);
313313
const objectPath = this._toObjectPath(deviceUuid);
314314
const objectPathPrefix = `${objectPath}/service`;

0 commit comments

Comments
 (0)