Skip to content

Commit bd0cf98

Browse files
committed
work
1 parent 8505bfa commit bd0cf98

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/hci-socket/gatt.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,9 @@ Gatt.prototype.addService = function AddGATTService(service, indicate){
218218
* to be added to take the first spot AFTER our last service that's on the array.
219219
*/
220220
var lastServiceIndex = null;
221-
console.log(handles);
222221
for(var i = 0; i < handles.length; i++){
223222
var handle = handles[i];
224-
console.log(handle);
225-
if(handle.type === 'service'){
223+
if(handle && handle.type === 'service'){
226224
lastServiceIndex = i;
227225
}
228226
}

0 commit comments

Comments
 (0)